Mercurial > hg
annotate tests/test-rebuildstate.t @ 51395:a0d88b021a98
unbundle: faster computation of changed heads
To compute the set of changed heads it's sufficient to look at the recent commits,
instead of looking at all heads currently in existence.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Thu, 21 Dec 2023 17:38:04 +0000 |
parents | 7a8bfc05b691 |
children |
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'): |
49961
7a8bfc05b691
dirstate: rename parentchange to changing_parents
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49960
diff
changeset
|
20 > with repo.dirstate.changing_parents(repo): |
47993
eb1f8d6e9419
dirstate: stop using `_normallookup` in the adddrop extension
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47988
diff
changeset
|
21 > repo.dirstate.update_file( |
eb1f8d6e9419
dirstate: stop using `_normallookup` in the adddrop extension
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47988
diff
changeset
|
22 > file, |
eb1f8d6e9419
dirstate: stop using `_normallookup` in the adddrop extension
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47988
diff
changeset
|
23 > p1_tracked=True, |
eb1f8d6e9419
dirstate: stop using `_normallookup` in the adddrop extension
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47988
diff
changeset
|
24 > wc_tracked=True, |
eb1f8d6e9419
dirstate: stop using `_normallookup` in the adddrop extension
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47988
diff
changeset
|
25 > possibly_dirty=True, |
eb1f8d6e9419
dirstate: stop using `_normallookup` in the adddrop extension
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47988
diff
changeset
|
26 > ) |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
27 > else: |
48002
44fc75bd1580
dirstate: use `reset_state` instead of `dropfile` in test-rebuildstate.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47993
diff
changeset
|
28 > repo.dirstate._map.reset_state(file) |
47988
d459c6b84961
dirstate: inline the last two `_drop` usage
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47738
diff
changeset
|
29 > repo.dirstate._dirty = True |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
30 > |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
31 > repo.dirstate.write(repo.currenttransaction()) |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
32 > finally: |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
33 > wlock.release() |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
34 > EOF |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
35 |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
36 $ echo "[extensions]" >> $HGRCPATH |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
37 $ 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
|
38 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
39 basic test for hg debugrebuildstate |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
40 |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
41 $ hg init repo |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
42 $ cd repo |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
43 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
44 $ touch foo bar |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
45 $ hg ci -Am 'add foo bar' |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
46 adding bar |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
47 adding foo |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
48 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
49 $ touch baz |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
50 $ hg add baz |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
51 $ hg rm bar |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
52 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
53 $ hg debugrebuildstate |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
54 |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
55 state dump after |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
56 |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
57 $ hg debugstate --no-dates | sort |
30026
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
58 n 0 -1 unset bar |
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
59 n 0 -1 unset foo |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
60 |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
61 $ 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
|
62 $ hg debugadddrop --drop bar |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
63 $ hg debugadddrop --drop |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
64 $ hg debugstate --no-dates |
27174
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
65 n 0 -1 unset file1 |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
66 n 0 -1 unset file2 |
30026
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
67 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
|
68 $ hg debugrebuildstate |
9fbe3545e4bd
debugdirstate: add command to rebuildstate test to modify dirstate
Christian Delahousse <cdelahousse@fb.com>
parents:
23840
diff
changeset
|
69 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
70 status |
5065
b304c2496f52
dirstate: fix rebuild; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
71 |
12121
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
72 $ hg st -A |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
73 ! bar |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
74 ? baz |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
75 C foo |
8f258dd4ed02
tests: unify test-rebuildstate
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6344
diff
changeset
|
76 |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
77 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
|
78 but in the dirstate |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
79 $ touch foo bar qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
80 $ hg add qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
81 $ hg remove bar |
48394
eea70e3539ed
tests: remove potential mtime ambiguity in a dirstate test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48002
diff
changeset
|
82 $ sleep 1 # remove potential ambiguity in mtime |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
83 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
84 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
85 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
86 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
87 C foo |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
88 $ 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
|
89 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
90 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
91 n 0 -1 * baz (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
92 n 644 0 * foo (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
93 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
94 $ hg debugrebuilddirstate --minimal |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
95 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
96 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
97 n 644 0 * foo (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
98 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
99 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
100 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
101 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
102 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
103 C foo |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
104 |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
105 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
|
106 dirstate |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
107 $ hg manifest |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
108 bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
109 foo |
48394
eea70e3539ed
tests: remove potential mtime ambiguity in a dirstate test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48002
diff
changeset
|
110 $ sleep 1 # remove potential ambiguity in mtime |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
111 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
112 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
113 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
114 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
115 C foo |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
116 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
117 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
118 n 644 0 * foo (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
119 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
120 $ hg debugadddrop --drop foo |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
121 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
122 r 0 0 * bar (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
123 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
124 $ hg debugrebuilddirstate --minimal |
39760
7e99b02768ef
debugdirstate: deprecate --nodates in favor of --no-dates
Martin von Zweigbergk <martinvonz@google.com>
parents:
38077
diff
changeset
|
125 $ hg debugdirstate --no-dates |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
126 r 0 0 * bar (glob) |
30026
ba06562a06a2
dirstate: rebuild should update dirstate properly
Mateusz Kwapich <mitrandir@fb.com>
parents:
27176
diff
changeset
|
127 n 0 -1 * foo (glob) |
27175
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
128 a 0 -1 * qux (glob) |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
129 $ hg status -A |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
130 A qux |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
131 R bar |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
132 ? baz |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
133 C foo |
25a8a866eb5d
debugrebuilddirstate: added tests for --minimal flag
Christian Delahousse <cdelahousse@fb.com>
parents:
27174
diff
changeset
|
134 |