Mercurial > hg
comparison tests/test-treemanifest.t @ 25153:1929d9c84028
test-treemanifest: add globs for Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 18 May 2015 11:37:29 -0400 |
parents | 49c583ca48c4 |
children | 0de132d5328a |
comparison
equal
deleted
inserted
replaced
25152:ac2e66f481c9 | 25153:1929d9c84028 |
---|---|
44 $ echo 2 > dir1/dir2/b | 44 $ echo 2 > dir1/dir2/b |
45 $ hg ci -Aqm 'add dir1/dir1' | 45 $ hg ci -Aqm 'add dir1/dir1' |
46 $ hg files -r . | 46 $ hg files -r . |
47 a | 47 a |
48 b | 48 b |
49 dir1/a | 49 dir1/a (glob) |
50 dir1/b | 50 dir1/b (glob) |
51 dir1/dir1/a | 51 dir1/dir1/a (glob) |
52 dir1/dir1/b | 52 dir1/dir1/b (glob) |
53 dir1/dir2/a | 53 dir1/dir2/a (glob) |
54 dir1/dir2/b | 54 dir1/dir2/b (glob) |
55 e | 55 e |
56 | 56 |
57 Revision is not created for unchanged directory | 57 Revision is not created for unchanged directory |
58 | 58 |
59 $ mkdir dir2 | 59 $ mkdir dir2 |
60 $ echo 3 > dir2/a | 60 $ echo 3 > dir2/a |
61 $ hg add dir2 | 61 $ hg add dir2 |
62 adding dir2/a | 62 adding dir2/a (glob) |
63 $ hg debugindex --dir dir1 > before | 63 $ hg debugindex --dir dir1 > before |
64 $ hg ci -qm 'add dir2' | 64 $ hg ci -qm 'add dir2' |
65 $ hg debugindex --dir dir1 > after | 65 $ hg debugindex --dir dir1 > after |
66 $ diff before after | 66 $ diff before after |
67 $ rm before after | 67 $ rm before after |
68 | 68 |
69 Removing directory does not create an revlog entry | 69 Removing directory does not create an revlog entry |
70 | 70 |
71 $ hg rm dir1/dir1 | 71 $ hg rm dir1/dir1 |
72 removing dir1/dir1/a | 72 removing dir1/dir1/a (glob) |
73 removing dir1/dir1/b | 73 removing dir1/dir1/b (glob) |
74 $ hg debugindex --dir dir1/dir1 > before | 74 $ hg debugindex --dir dir1/dir1 > before |
75 $ hg ci -qm 'remove dir1/dir1' | 75 $ hg ci -qm 'remove dir1/dir1' |
76 $ hg debugindex --dir dir1/dir1 > after | 76 $ hg debugindex --dir dir1/dir1 > after |
77 $ diff before after | 77 $ diff before after |
78 $ rm before after | 78 $ rm before after |
80 Check that hg files (calls treemanifest.walk()) works | 80 Check that hg files (calls treemanifest.walk()) works |
81 | 81 |
82 $ hg co 'desc("add dir2")' | 82 $ hg co 'desc("add dir2")' |
83 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 83 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
84 $ hg files -r . dir1 | 84 $ hg files -r . dir1 |
85 dir1/a | 85 dir1/a (glob) |
86 dir1/b | 86 dir1/b (glob) |
87 dir1/dir1/a | 87 dir1/dir1/a (glob) |
88 dir1/dir1/b | 88 dir1/dir1/b (glob) |
89 dir1/dir2/a | 89 dir1/dir2/a (glob) |
90 dir1/dir2/b | 90 dir1/dir2/b (glob) |
91 | 91 |
92 Check that status between revisions works (calls treemanifest.matches()) | 92 Check that status between revisions works (calls treemanifest.matches()) |
93 | 93 |
94 $ hg status --rev 'desc("add dir1")' --rev . dir1 | 94 $ hg status --rev 'desc("add dir1")' --rev . dir1 |
95 A dir1/dir1/a | 95 A dir1/dir1/a |