-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path05svm-copy.t
43 lines (34 loc) · 1.12 KB
/
05svm-copy.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
#!usr/bin/perl -w
use strict;
use Test::More;
use SVK::Test;
plan tests => 2;
our ($output, $answer);
# build another tree to be mirrored ourself
my ($xd, $svk) = build_test('test');
$svk->mkdir (-m => 'trunk', '/test/trunk');
my $tree = create_basic_tree ($xd, '/test/trunk');
$svk->copy (-pm => 'local', '/test/trunk' => '/test/local');
$svk->copy (-pm => 'here', '/test/trunk' => '/test/branches/hate');
$svk->copy (-pm => 'here', '/test/trunk' => '/test/branches/hate2');
my ($srepospath, $spath, $srepos) =$xd->find_repos ('/test/trunk', 1);
my $uri = uri($srepospath);
$svk->mirror ('//m-trunk', $uri.'/trunk');
$svk->sync ('-a');
$svk->mirror ('//m-branches', $uri.'/branches');
$svk->sync ('-a');
TODO: {
local $TODO = "replay-based sync doesn't support this yet";
is_ancestor ($svk, '//m-branches/hate',
'/m-trunk', 4);
}
TODO: {
local $TODO = 'mirror anchor being initialized with copy';
$svk->mirror ('//m-local', $uri.'/local');
$svk->sync ('-a');
is_ancestor ($svk, '//m-local',
'/m-trunk', 4);
}
# DTRT when remote copy source is also something we have mirror locally.
# need resolver for remote copy too.
1;