-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path07smerge-delete2.t
40 lines (32 loc) · 1.04 KB
/
07smerge-delete2.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
#!/usr/bin/perl -w
use Test::More tests => 1;
use strict;
use File::Path;
use Cwd;
use SVK::Test;
my ($xd, $svk) = build_test();
our $output;
our ($copath, $corpath) = get_copath();
$svk->mkdir ('-m', 'trunk', '//trunk');
$svk->checkout ('//trunk', $copath);
my ($repospath, undef, $repos) = $xd->find_repos ('//', 1);
my $uuid = $repos->fs->get_uuid;
mkdir "$copath/A";
$svk->add ("$copath/A");
$svk->commit ('-m', 'init', "$copath");
$svk->cp ('-m', 'branch', '//trunk', '//local');
$svk->rm ('-m', 'rm A on local', '//local/A');
append_file ("$copath/A/a_file", "add a file\n");
$svk->add ("$copath/A/a_file");
$svk->commit ('-m', 'add a file', "$copath");
mkdir "$copath/A/a_dir";
$svk->add ("$copath/A/a_dir");
$svk->commit ('-m', 'add a dir', "$copath");
# XXX: skipped is wrong, but anyway it must report things at least
is_output ($svk, 'smerge', ['-C', '//trunk', '//local'],
['Auto-merging (2, 6) /trunk to /local (base /trunk:2).',
" A - skipped",
" A/a_file - skipped",
" A/a_dir - skipped",
"Empty merge.",
]);