Show More
@@ -1,106 +1,161 b'' | |||
|
1 | 1 | Tests of 'hg status --rev <rev>' to make sure status between <rev> and '.' get |
|
2 | 2 | combined correctly with the dirstate status. |
|
3 | 3 | |
|
4 | 4 | $ hg init |
|
5 | 5 | |
|
6 | 6 | First commit |
|
7 | 7 | |
|
8 | 8 | $ python $TESTDIR/generate-working-copy-states.py base |
|
9 | 9 | $ hg addremove --similarity 0 |
|
10 | 10 | adding content1_content1_content1-tracked |
|
11 | 11 | adding content1_content1_content1-untracked |
|
12 | 12 | adding content1_content1_content3-tracked |
|
13 | 13 | adding content1_content1_content3-untracked |
|
14 | 14 | adding content1_content1_missing-tracked |
|
15 | 15 | adding content1_content1_missing-untracked |
|
16 | 16 | adding content1_content2_content1-tracked |
|
17 | 17 | adding content1_content2_content1-untracked |
|
18 | 18 | adding content1_content2_content2-tracked |
|
19 | 19 | adding content1_content2_content2-untracked |
|
20 | 20 | adding content1_content2_content3-tracked |
|
21 | 21 | adding content1_content2_content3-untracked |
|
22 | 22 | adding content1_content2_missing-tracked |
|
23 | 23 | adding content1_content2_missing-untracked |
|
24 | 24 | adding content1_missing_content1-tracked |
|
25 | 25 | adding content1_missing_content1-untracked |
|
26 | 26 | adding content1_missing_content3-tracked |
|
27 | 27 | adding content1_missing_content3-untracked |
|
28 | 28 | adding content1_missing_missing-tracked |
|
29 | 29 | adding content1_missing_missing-untracked |
|
30 | 30 | $ hg commit -m first |
|
31 | 31 | |
|
32 | 32 | Second commit |
|
33 | 33 | |
|
34 | 34 | $ python $TESTDIR/generate-working-copy-states.py parent |
|
35 | 35 | $ hg addremove --similarity 0 |
|
36 | 36 | removing content1_missing_content1-tracked |
|
37 | 37 | removing content1_missing_content1-untracked |
|
38 | 38 | removing content1_missing_content3-tracked |
|
39 | 39 | removing content1_missing_content3-untracked |
|
40 | 40 | removing content1_missing_missing-tracked |
|
41 | 41 | removing content1_missing_missing-untracked |
|
42 | 42 | adding missing_content2_content2-tracked |
|
43 | 43 | adding missing_content2_content2-untracked |
|
44 | 44 | adding missing_content2_content3-tracked |
|
45 | 45 | adding missing_content2_content3-untracked |
|
46 | 46 | adding missing_content2_missing-tracked |
|
47 | 47 | adding missing_content2_missing-untracked |
|
48 | 48 | $ hg commit -m second |
|
49 | 49 | |
|
50 | 50 | Working copy |
|
51 | 51 | |
|
52 | 52 | $ python $TESTDIR/generate-working-copy-states.py wc |
|
53 | 53 | $ hg addremove --similarity 0 |
|
54 | 54 | adding content1_missing_content1-tracked |
|
55 | 55 | adding content1_missing_content1-untracked |
|
56 | 56 | adding content1_missing_content3-tracked |
|
57 | 57 | adding content1_missing_content3-untracked |
|
58 | 58 | adding content1_missing_missing-tracked |
|
59 | 59 | adding content1_missing_missing-untracked |
|
60 | 60 | adding missing_missing_content3-tracked |
|
61 | 61 | adding missing_missing_content3-untracked |
|
62 | 62 | adding missing_missing_missing-tracked |
|
63 | 63 | adding missing_missing_missing-untracked |
|
64 | 64 | $ hg forget *_*_*-untracked |
|
65 | 65 | $ rm *_*_missing-* |
|
66 | 66 | |
|
67 | Status compared to one revision back | |
|
67 | Status compared to parent of the working copy, i.e. the dirstate status | |
|
68 | ||
|
69 | $ hg status -A --rev 1 'glob:missing_content2_content3-tracked' | |
|
70 | M missing_content2_content3-tracked | |
|
71 | $ hg status -A --rev 1 'glob:missing_content2_content2-tracked' | |
|
72 | C missing_content2_content2-tracked | |
|
73 | $ hg status -A --rev 1 'glob:missing_missing_content3-tracked' | |
|
74 | A missing_missing_content3-tracked | |
|
75 | $ hg status -A --rev 1 'glob:missing_missing_content3-untracked' | |
|
76 | ? missing_missing_content3-untracked | |
|
77 | $ hg status -A --rev 1 'glob:missing_content2_*-untracked' | |
|
78 | R missing_content2_content2-untracked | |
|
79 | R missing_content2_content3-untracked | |
|
80 | R missing_content2_missing-untracked | |
|
81 | $ hg status -A --rev 1 'glob:missing_*_missing-tracked' | |
|
82 | ! missing_content2_missing-tracked | |
|
83 | ! missing_missing_missing-tracked | |
|
84 | $ hg status -A --rev 1 'glob:missing_missing_missing-untracked' | |
|
85 | missing_missing_missing-untracked: No such file or directory | |
|
86 | ||
|
87 | Status between first and second commit. Should ignore dirstate status. | |
|
88 | ||
|
89 | $ hg status -A --rev 0:1 'glob:content1_content2_*' | |
|
90 | M content1_content2_content1-tracked | |
|
91 | M content1_content2_content1-untracked | |
|
92 | M content1_content2_content2-tracked | |
|
93 | M content1_content2_content2-untracked | |
|
94 | M content1_content2_content3-tracked | |
|
95 | M content1_content2_content3-untracked | |
|
96 | M content1_content2_missing-tracked | |
|
97 | M content1_content2_missing-untracked | |
|
98 | $ hg status -A --rev 0:1 'glob:content1_content1_*' | |
|
99 | C content1_content1_content1-tracked | |
|
100 | C content1_content1_content1-untracked | |
|
101 | C content1_content1_content3-tracked | |
|
102 | C content1_content1_content3-untracked | |
|
103 | C content1_content1_missing-tracked | |
|
104 | C content1_content1_missing-untracked | |
|
105 | $ hg status -A --rev 0:1 'glob:missing_content2_*' | |
|
106 | A missing_content2_content2-tracked | |
|
107 | A missing_content2_content2-untracked | |
|
108 | A missing_content2_content3-tracked | |
|
109 | A missing_content2_content3-untracked | |
|
110 | A missing_content2_missing-tracked | |
|
111 | A missing_content2_missing-untracked | |
|
112 | $ hg status -A --rev 0:1 'glob:content1_missing_*' | |
|
113 | R content1_missing_content1-tracked | |
|
114 | R content1_missing_content1-untracked | |
|
115 | R content1_missing_content3-tracked | |
|
116 | R content1_missing_content3-untracked | |
|
117 | R content1_missing_missing-tracked | |
|
118 | R content1_missing_missing-untracked | |
|
119 | $ hg status -A --rev 0:1 'glob:missing_missing_*' | |
|
120 | ||
|
121 | Status compared to one revision back, checking that the dirstate status | |
|
122 | is correctly combined with the inter-revision status | |
|
68 | 123 | |
|
69 | 124 | $ hg status -A --rev 0 'glob:content1_*_content[23]-tracked' |
|
70 | 125 | M content1_content1_content3-tracked |
|
71 | 126 | M content1_content2_content2-tracked |
|
72 | 127 | M content1_content2_content3-tracked |
|
73 | 128 | M content1_missing_content3-tracked |
|
74 | 129 | $ hg status -A --rev 0 'glob:content1_*_content1-tracked' |
|
75 | 130 | C content1_content1_content1-tracked |
|
76 | 131 | C content1_content2_content1-tracked |
|
77 | 132 | C content1_missing_content1-tracked |
|
78 | 133 | $ hg status -A --rev 0 'glob:missing_*_content?-tracked' |
|
79 | 134 | A missing_content2_content2-tracked |
|
80 | 135 | A missing_content2_content3-tracked |
|
81 | 136 | A missing_missing_content3-tracked |
|
82 | 137 | BROKEN: missing_content2_content[23]-untracked exist, so should be listed |
|
83 | 138 | $ hg status -A --rev 0 'glob:missing_*_content?-untracked' |
|
84 | 139 | ? missing_missing_content3-untracked |
|
85 | 140 | $ hg status -A --rev 0 'glob:content1_*_*-untracked' |
|
86 | 141 | R content1_content1_content1-untracked |
|
87 | 142 | R content1_content1_content3-untracked |
|
88 | 143 | R content1_content1_missing-untracked |
|
89 | 144 | R content1_content2_content1-untracked |
|
90 | 145 | R content1_content2_content2-untracked |
|
91 | 146 | R content1_content2_content3-untracked |
|
92 | 147 | R content1_content2_missing-untracked |
|
93 | 148 | R content1_missing_content1-untracked |
|
94 | 149 | R content1_missing_content3-untracked |
|
95 | 150 | R content1_missing_missing-untracked |
|
96 | 151 | BROKEN: content1_*_missing-tracked appear twice; should just be '!' |
|
97 | 152 | $ hg status -A --rev 0 'glob:*_*_missing-tracked' |
|
98 | 153 | R content1_missing_missing-tracked |
|
99 | 154 | ! content1_content1_missing-tracked |
|
100 | 155 | ! content1_content2_missing-tracked |
|
101 | 156 | ! content1_missing_missing-tracked |
|
102 | 157 | ! missing_content2_missing-tracked |
|
103 | 158 | ! missing_missing_missing-tracked |
|
104 | 159 | C content1_content1_missing-tracked |
|
105 | 160 | C content1_content2_missing-tracked |
|
106 | 161 | $ hg status -A --rev 0 'glob:missing_*_missing-untracked' |
General Comments 0
You need to be logged in to leave comments.
Login now