Mercurial > hg
comparison tests/test-cat.t @ 24381:82b82168d045
context.walk: walk all files when file and '.' given
When both '.' (the working copy root) and an explicit file (or files)
are in match.files(), we only walk the explicitly listed files. This
is because we remove the '.' from the set too early. Move later and
add a test for it. Before this change, the last test would print only
"3".
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 18 Mar 2015 11:42:09 -0700 |
parents | 50107a4b32e7 |
children | c560d8c68791 |
comparison
equal
deleted
inserted
replaced
24380:dd3bccb4b820 | 24381:82b82168d045 |
---|---|
20 a: no such file in rev 7040230c159c | 20 a: no such file in rev 7040230c159c |
21 [1] | 21 [1] |
22 $ hg cat -r 1 b | 22 $ hg cat -r 1 b |
23 1 | 23 1 |
24 | 24 |
25 Test fileset | 25 Test multiple files |
26 | 26 |
27 $ echo 3 > c | 27 $ echo 3 > c |
28 $ hg ci -Am addmore c | 28 $ hg ci -Am addmore c |
29 $ hg cat b c | |
30 1 | |
31 3 | |
32 $ hg cat . | |
33 1 | |
34 3 | |
35 $ hg cat . c | |
36 1 | |
37 3 | |
38 | |
39 Test fileset | |
40 | |
29 $ hg cat 'set:not(b) or a' | 41 $ hg cat 'set:not(b) or a' |
30 3 | 42 3 |
31 $ hg cat 'set:c or b' | 43 $ hg cat 'set:c or b' |
32 1 | 44 1 |
33 3 | 45 3 |