Mercurial > hg
comparison tests/test-rebuildstate.t @ 27175:25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Added tests for debugrebuilddirstate --minimal.
author | Christian Delahousse <cdelahousse@fb.com> |
---|---|
date | Tue, 01 Dec 2015 10:52:36 -0800 |
parents | 9fbe3545e4bd |
children | 54ace3372f84 |
comparison
equal
deleted
inserted
replaced
27174:9fbe3545e4bd | 27175:25a8a866eb5d |
---|---|
65 $ hg st -A | 65 $ hg st -A |
66 ! bar | 66 ! bar |
67 ? baz | 67 ? baz |
68 C foo | 68 C foo |
69 | 69 |
70 $ cd .. | 70 Test debugdirstate --minimal where a file is not in parent manifest |
71 but in the dirstate | |
72 $ touch foo bar qux | |
73 $ hg add qux | |
74 $ hg remove bar | |
75 $ hg status -A | |
76 A qux | |
77 R bar | |
78 ? baz | |
79 C foo | |
80 $ hg debugadddrop --normal-lookup baz | |
81 $ hg debugdirstate --nodates | |
82 r 0 0 * bar (glob) | |
83 n 0 -1 * baz (glob) | |
84 n 644 0 * foo (glob) | |
85 a 0 -1 * qux (glob) | |
86 $ hg debugrebuilddirstate --minimal | |
87 $ hg debugdirstate --nodates | |
88 r 0 0 * bar (glob) | |
89 n 644 0 * foo (glob) | |
90 a 0 -1 * qux (glob) | |
91 $ hg status -A | |
92 A qux | |
93 R bar | |
94 ? baz | |
95 C foo | |
96 | |
97 Test debugdirstate --minimal where file is in the parent manifest but not the | |
98 dirstate | |
99 $ hg manifest | |
100 bar | |
101 foo | |
102 $ hg status -A | |
103 A qux | |
104 R bar | |
105 ? baz | |
106 C foo | |
107 $ hg debugdirstate --nodates | |
108 r 0 0 * bar (glob) | |
109 n 644 0 * foo (glob) | |
110 a 0 -1 * qux (glob) | |
111 $ hg debugadddrop --drop foo | |
112 $ hg debugdirstate --nodates | |
113 r 0 0 * bar (glob) | |
114 a 0 -1 * qux (glob) | |
115 $ hg debugrebuilddirstate --minimal | |
116 $ hg debugdirstate --nodates | |
117 r 0 0 * bar (glob) | |
118 n 0 -1 * foo (glob) | |
119 a 0 -1 * qux (glob) | |
120 $ hg status -A | |
121 A qux | |
122 R bar | |
123 ? baz | |
124 C foo | |
125 |