-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path29update-merge-ticket.t
52 lines (45 loc) · 1.37 KB
/
29update-merge-ticket.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/perl -w
use strict;
use Test::More tests => 1;
use File::Path;
use Cwd;
use SVK::Test;
my ($xd, $svk) = build_test();
our $output;
my ($copath, $corpath) = get_copath();
my (undef, undef, $repos) = $xd->find_repos ('//', 1);
my $uuid = $repos->fs->get_uuid;
$svk->mkdir ('-m', 'trunk', '//trunk');
my $tree = create_basic_tree ($xd, '//trunk');
$svk->cp ('-m', 'branch', '//trunk', '//local');
$svk->cp ('-m', 'branch', '//local', '//local-another');
$svk->co ('//trunk', $copath);
append_file("$copath/me", "a change\n");
$svk->ci ('-m', 'change file', $copath );
$svk->switch ('//local-another', $copath);
append_file("$copath/A/be", "a change\n");
$svk->ci ('-m', 'change file', $copath );
$svk->sm ('-Il', '//local-another', '//local' );
$svk->switch ('//local@4', $copath);
$svk->sm ('//trunk', $copath);
$svk->up ($copath);
is_output($svk, 'diff', [$copath],
[
__("=== $copath/me"),
'==================================================================',
__("--- $copath/me\t(revision 8)"),
__("+++ $copath/me\t(local)"),
'@@ -1,2 +1,3 @@',
' first line in me',
' 2nd line in me - mod',
'+a change',
'',
__("Property changes on: $copath"),
'___________________________________________________________________',
'Name: svk:merge',
" $uuid:/local-another:7",
" -$uuid:/trunk:3",
" +$uuid:/trunk:6",
""
]
);