Mercurial > hg
annotate tests/test-rebuildstate.t @ 47988:d459c6b84961
dirstate: inline the last two `_drop` usage
The function is small and having the associated code directly inline help use to cleanup the dirstate API.
Differential Revision: https://phab.mercurial-scm.org/D11428
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 15 Sep 2021 10:20:25 +0200 |
parents | c53008253113 |
children | eb1f8d6e9419 |
rev | line source |
---|---|
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
1 |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
2 $ cat > adddrop.py <<EOF |
32337
46ba2cdda476
registrar: move cmdutil.command to registrar module (API)
Yuya Nishihara <yuya@tcha.org>
parents:
30026
diff
changeset
|
3 > from mercurial import registrar |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
4 > cmdtable = {} |
32337
46ba2cdda476
registrar: move cmdutil.command to registrar module (API)
Yuya Nishihara <yuya@tcha.org>
parents:
30026
diff
changeset
|
5 > command = registrar.command(cmdtable) |
33097
fce4ed2912bb
py3: make sure commands name are bytes in tests
Pulkit Goyal <7895pulkit@gmail.com>
parents:
32337
diff
changeset
|
6 > @command(b'debugadddrop', |
38077
74c5ddd97008
py3: add b'' prefixes in tests/test-rebuildstate.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
33097
diff
changeset
|
7 > [(b'', b'drop', False, b'drop file from dirstate', b'FILE'), |
74c5ddd97008
py3: add b'' prefixes in tests/test-rebuildstate.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
33097
diff
changeset
|
8 > (b'', b'normal-lookup', False, b'add file to dirstate', b'FILE')], |
74c5ddd97008
py3: add b'' prefixes in tests/test-rebuildstate.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
33097
diff
changeset
|
9 > b'hg debugadddrop') |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
10 > def debugadddrop(ui, repo, *pats, **opts): |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
11 > '''Add or drop unnamed arguments to or from the dirstate''' |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
12 > drop = opts.get('drop') |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
13 > nl = opts.get('normal_lookup') |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
14 > if nl and drop: |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
15 > raise error.Abort('drop and normal-lookup are mutually exclusive') |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
16 > wlock = repo.wlock() |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
17 > try: |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
18 > for file in pats: |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
19 > if opts.get('normal_lookup'): |
47738
c53008253113
test: use the internal `_normallookup` in `test-rebuildstate.t`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47607
diff
changeset
|
20 > repo.dirstate._normallookup(file) |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
21 > else: |
47988
d459c6b84961
dirstate: inline the last two `_drop` usage
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47738
diff
changeset
|
22 > repo.dirstate._map.dropfile(file) |
d459c6b84961
dirstate: inline the last two `_drop` usage
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47738
diff
changeset
|
23 > repo.dirstate._dirty = True |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
24 > |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
25 > repo.dirstate.write(repo.currenttransaction()) |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
26 > finally: |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
27 > wlock.release() |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
28 > EOF |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
29 |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
30 $ echo "[extensions]" >> $HGRCPATH |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
31 $ echo "debugadddrop=`pwd`/adddrop.py" >> $HGRCPATH |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
32 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
33 basic test for hg debugrebuildstate |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
34 |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
35 $ hg init repo |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
36 $ cd repo |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
37 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
38 $ touch foo bar |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
39 $ hg ci -Am 'add foo bar' |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
40 adding bar |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
41 adding foo |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
42 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
43 $ touch baz |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
44 $ hg add baz |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
45 $ hg rm bar |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
46 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
47 $ hg debugrebuildstate |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
48 |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
49 state dump after |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
50 |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
51 $ hg debugstate --no-dates | sort |
30026
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
52 n 0 -1 unset bar |
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
53 n 0 -1 unset foo |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
54 |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
55 $ hg debugadddrop --normal-lookup file1 file2 |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
56 $ hg debugadddrop --drop bar |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
57 $ hg debugadddrop --drop |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
58 $ hg debugstate --no-dates |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
59 n 0 -1 unset file1 |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
60 n 0 -1 unset file2 |
30026
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
61 n 0 -1 unset foo |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
62 $ hg debugrebuildstate |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
63 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
64 status |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
65 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
66 $ hg st -A |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
67 ! bar |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
68 ? baz |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
69 C foo |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
70 |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
71 Test debugdirstate --minimal where a file is not in parent manifest |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
72 but in the dirstate |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
73 $ touch foo bar qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
74 $ hg add qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
75 $ hg remove bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
76 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
77 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
78 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
79 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
80 C foo |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
81 $ hg debugadddrop --normal-lookup baz |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
82 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
83 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
84 n 0 -1 * baz (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
85 n 644 0 * foo (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
86 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
87 $ hg debugrebuilddirstate --minimal |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
88 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
89 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
90 n 644 0 * foo (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
91 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
92 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
93 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
94 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
95 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
96 C foo |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
97 |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
98 Test debugdirstate --minimal where file is in the parent manifest but not the |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
99 dirstate |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
100 $ hg manifest |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
101 bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
102 foo |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
103 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
104 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
105 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
106 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
107 C foo |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
108 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
109 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
110 n 644 0 * foo (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
111 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
112 $ hg debugadddrop --drop foo |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
113 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
114 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
115 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
116 $ hg debugrebuilddirstate --minimal |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
117 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
118 r 0 0 * bar (glob) |
30026
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
119 n 0 -1 * foo (glob) |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
120 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
121 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
122 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
123 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
124 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
125 C foo |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
126 |