-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path76ignore.t
38 lines (29 loc) · 1.05 KB
/
76ignore.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
#!/usr/bin/perl -w
use Test::More tests => 6;
use strict;
use SVK::Test;
our $output;
my ($xd, $svk) = build_test();
my ($copath1, $corpath1) = get_copath ('ignore1');
my ($copath2, $corpath2) = get_copath ('ignore2');
# (note: 22status contains ignore tests too)
$svk->checkout('//', $copath1);
$svk->checkout('//', $copath2);
# make sure you can ignore across checkouts: this was an issue while
# developing
overwrite_file("$copath1/foo", "bye");
is_output($svk, 'status', [$copath1],
[__("? $copath1/foo")]);
overwrite_file("$copath2/bar", "hi");
is_output($svk, 'status', [$copath2],
[__("? $copath2/bar")]);
is_output($svk, 'ignore', ["$copath1/foo", "$copath2/bar"],
[__(" M $copath1"),
__(" M $copath2")]);
is_output($svk, 'ignore', ["$copath1/foo", "$copath2/bar"],
[__("Already ignoring '$copath1/foo'"),
__("Already ignoring '$copath2/bar'")]);
is_output($svk, 'status', [$copath1],
[__(" M $copath1")]);
is_output($svk, 'status', [$copath2],
[__(" M $copath2")]);