Show More
@@ -1306,7 +1306,7 b' coreconfigitem(' | |||
|
1306 | 1306 | # Enable this dirstate format *when creating a new repository*. |
|
1307 | 1307 | # Which format to use for existing repos is controlled by .hg/requires |
|
1308 | 1308 | b'format', |
|
1309 | b'exp-dirstate-v2', | |
|
1309 | b'exp-rc-dirstate-v2', | |
|
1310 | 1310 | default=False, |
|
1311 | 1311 | experimental=True, |
|
1312 | 1312 | ) |
@@ -1880,7 +1880,7 b' coreconfigitem(' | |||
|
1880 | 1880 | default=b'skip', |
|
1881 | 1881 | experimental=True, |
|
1882 | 1882 | ) |
|
1883 | # experimental as long as format.exp-dirstate-v2 is. | |
|
1883 | # experimental as long as format.exp-rc-dirstate-v2 is. | |
|
1884 | 1884 | coreconfigitem( |
|
1885 | 1885 | b'storage', |
|
1886 | 1886 | b'dirstate-v2.slow-path', |
@@ -1189,7 +1189,7 b' def resolverevlogstorevfsoptions(ui, req' | |||
|
1189 | 1189 | b"fast implementation." |
|
1190 | 1190 | ) |
|
1191 | 1191 | hint = _( |
|
1192 | b"check `hg help config.format.exp-dirstate-v2` " b"for details" | |
|
1192 | b"check `hg help config.format.exp-rc-dirstate-v2` " b"for details" | |
|
1193 | 1193 | ) |
|
1194 | 1194 | if not dirstate.HAS_FAST_DIRSTATE_V2: |
|
1195 | 1195 | if slow_path == b'warn': |
@@ -3630,9 +3630,9 b' def newreporequirements(ui, createopts):' | |||
|
3630 | 3630 | if ui.configbool(b'format', b'sparse-revlog'): |
|
3631 | 3631 | requirements.add(requirementsmod.SPARSEREVLOG_REQUIREMENT) |
|
3632 | 3632 | |
|
3633 | # experimental config: format.exp-dirstate-v2 | |
|
3633 | # experimental config: format.exp-rc-dirstate-v2 | |
|
3634 | 3634 | # Keep this logic in sync with `has_dirstate_v2()` in `tests/hghave.py` |
|
3635 | if ui.configbool(b'format', b'exp-dirstate-v2'): | |
|
3635 | if ui.configbool(b'format', b'exp-rc-dirstate-v2'): | |
|
3636 | 3636 | requirements.add(requirementsmod.DIRSTATE_V2_REQUIREMENT) |
|
3637 | 3637 | |
|
3638 | 3638 | # experimental config: format.exp-use-copies-side-data-changeset |
@@ -12,7 +12,7 b" DOTENCODE_REQUIREMENT = b'dotencode'" | |||
|
12 | 12 | STORE_REQUIREMENT = b'store' |
|
13 | 13 | FNCACHE_REQUIREMENT = b'fncache' |
|
14 | 14 | |
|
15 |
DIRSTATE_V2_REQUIREMENT = b' |
|
|
15 | DIRSTATE_V2_REQUIREMENT = b'dirstate-v2' | |
|
16 | 16 | |
|
17 | 17 | # When narrowing is finalized and no longer subject to format changes, |
|
18 | 18 | # we should move this to just "narrow" or similar. |
@@ -178,7 +178,9 b' class dirstatev2(requirementformatvarian' | |||
|
178 | 178 | |
|
179 | 179 | description = _( |
|
180 | 180 | b'version 1 of the dirstate file format requires ' |
|
181 | b'reading and parsing it all at once.' | |
|
181 | b'reading and parsing it all at once.\n' | |
|
182 | b'Version 2 has a better structure,' | |
|
183 | b'better information and lighter update mechanism' | |
|
182 | 184 | ) |
|
183 | 185 | |
|
184 | 186 | upgrademessage = _(b'"hg status" will be faster') |
@@ -92,7 +92,7 b' const SUPPORTED: &[&str] = &[' | |||
|
92 | 92 | |
|
93 | 93 | // Copied from mercurial/requirements.py: |
|
94 | 94 | |
|
95 |
pub(crate) const DIRSTATE_V2_REQUIREMENT: &str = " |
|
|
95 | pub(crate) const DIRSTATE_V2_REQUIREMENT: &str = "dirstate-v2"; | |
|
96 | 96 | |
|
97 | 97 | /// When narrowing is finalized and no longer subject to format changes, |
|
98 | 98 | /// we should move this to just "narrow" or similar. |
@@ -6,7 +6,7 b' Create a repository:' | |||
|
6 | 6 | devel.all-warnings=true |
|
7 | 7 | devel.default-date=0 0 |
|
8 | 8 | extensions.fsmonitor= (fsmonitor !) |
|
9 | format.exp-dirstate-v2=1 (dirstate-v2 !) | |
|
9 | format.exp-rc-dirstate-v2=1 (dirstate-v2 !) | |
|
10 | 10 | largefiles.usercache=$TESTTMP/.cache/largefiles |
|
11 | 11 | lfs.usercache=$TESTTMP/.cache/lfs |
|
12 | 12 | ui.slash=True |
@@ -218,7 +218,7 b' check that local configs for the cached ' | |||
|
218 | 218 | devel.all-warnings=true |
|
219 | 219 | devel.default-date=0 0 |
|
220 | 220 | extensions.fsmonitor= (fsmonitor !) |
|
221 | format.exp-dirstate-v2=1 (dirstate-v2 !) | |
|
221 | format.exp-rc-dirstate-v2=1 (dirstate-v2 !) | |
|
222 | 222 | largefiles.usercache=$TESTTMP/.cache/largefiles |
|
223 | 223 | lfs.usercache=$TESTTMP/.cache/lfs |
|
224 | 224 | ui.slash=True |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | #if dirstate-v2 |
|
4 | 4 | $ cat >> $HGRCPATH << EOF |
|
5 | 5 | > [format] |
|
6 | > exp-dirstate-v2=1 | |
|
6 | > exp-rc-dirstate-v2=1 | |
|
7 | 7 | > [storage] |
|
8 | 8 | > dirstate-v2.slow-path=allow |
|
9 | 9 | > EOF |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | #if dirstate-v2 |
|
4 | 4 | $ cat >> $HGRCPATH << EOF |
|
5 | 5 | > [format] |
|
6 | > exp-dirstate-v2=1 | |
|
6 | > exp-rc-dirstate-v2=1 | |
|
7 | 7 | > [storage] |
|
8 | 8 | > dirstate-v2.slow-path=allow |
|
9 | 9 | > EOF |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | #if dirstate-v2 |
|
4 | 4 | $ cat >> $HGRCPATH << EOF |
|
5 | 5 | > [format] |
|
6 | > exp-dirstate-v2=1 | |
|
6 | > exp-rc-dirstate-v2=1 | |
|
7 | 7 | > [storage] |
|
8 | 8 | > dirstate-v2.slow-path=allow |
|
9 | 9 | > EOF |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | #if dirstate-v2 |
|
4 | 4 | $ cat >> $HGRCPATH << EOF |
|
5 | 5 | > [format] |
|
6 | > exp-dirstate-v2=1 | |
|
6 | > exp-rc-dirstate-v2=1 | |
|
7 | 7 | > [storage] |
|
8 | 8 | > dirstate-v2.slow-path=allow |
|
9 | 9 | > EOF |
@@ -19,7 +19,7 b" creating 'local'" | |||
|
19 | 19 | store created |
|
20 | 20 | 00changelog.i created |
|
21 | 21 | dotencode |
|
22 | exp-dirstate-v2 (dirstate-v2 !) | |
|
22 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
23 | 23 | fncache |
|
24 | 24 | generaldelta |
|
25 | 25 | persistent-nodemap (rust !) |
@@ -61,7 +61,7 b' creating repo with format.usestore=false' | |||
|
61 | 61 | |
|
62 | 62 | $ hg --config format.usestore=false init old |
|
63 | 63 | $ checknewrepo old |
|
64 | exp-dirstate-v2 (dirstate-v2 !) | |
|
64 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
65 | 65 | generaldelta |
|
66 | 66 | persistent-nodemap (rust !) |
|
67 | 67 | revlog-compression-zstd (zstd !) |
@@ -75,7 +75,7 b' creating repo with format.usefncache=fal' | |||
|
75 | 75 | $ checknewrepo old2 |
|
76 | 76 | store created |
|
77 | 77 | 00changelog.i created |
|
78 | exp-dirstate-v2 (dirstate-v2 !) | |
|
78 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
79 | 79 | generaldelta |
|
80 | 80 | persistent-nodemap (rust !) |
|
81 | 81 | revlog-compression-zstd (zstd !) |
@@ -90,7 +90,7 b' creating repo with format.dotencode=fals' | |||
|
90 | 90 | $ checknewrepo old3 |
|
91 | 91 | store created |
|
92 | 92 | 00changelog.i created |
|
93 | exp-dirstate-v2 (dirstate-v2 !) | |
|
93 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
94 | 94 | fncache |
|
95 | 95 | generaldelta |
|
96 | 96 | persistent-nodemap (rust !) |
@@ -107,7 +107,7 b' creating repo with format.dotencode=fals' | |||
|
107 | 107 | store created |
|
108 | 108 | 00changelog.i created |
|
109 | 109 | dotencode |
|
110 | exp-dirstate-v2 (dirstate-v2 !) | |
|
110 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
111 | 111 | fncache |
|
112 | 112 | persistent-nodemap (rust !) |
|
113 | 113 | revlog-compression-zstd (zstd !) |
@@ -226,7 +226,7 b" creating 'local/sub/repo'" | |||
|
226 | 226 | store created |
|
227 | 227 | 00changelog.i created |
|
228 | 228 | dotencode |
|
229 | exp-dirstate-v2 (dirstate-v2 !) | |
|
229 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
230 | 230 | fncache |
|
231 | 231 | generaldelta |
|
232 | 232 | persistent-nodemap (rust !) |
@@ -249,7 +249,7 b' init should (for consistency with clone)' | |||
|
249 | 249 | store created |
|
250 | 250 | 00changelog.i created |
|
251 | 251 | dotencode |
|
252 | exp-dirstate-v2 (dirstate-v2 !) | |
|
252 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
253 | 253 | fncache |
|
254 | 254 | generaldelta |
|
255 | 255 | persistent-nodemap (rust !) |
@@ -268,7 +268,7 b' verify that clone also expand urls' | |||
|
268 | 268 | store created |
|
269 | 269 | 00changelog.i created |
|
270 | 270 | dotencode |
|
271 | exp-dirstate-v2 (dirstate-v2 !) | |
|
271 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
272 | 272 | fncache |
|
273 | 273 | generaldelta |
|
274 | 274 | persistent-nodemap (rust !) |
@@ -96,7 +96,7 b' Test link+rename largefile codepath' | |||
|
96 | 96 | "lfconvert" adds 'largefiles' to .hg/requires. |
|
97 | 97 | $ cat .hg/requires |
|
98 | 98 | dotencode |
|
99 | exp-dirstate-v2 (dirstate-v2 !) | |
|
99 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
100 | 100 | fncache |
|
101 | 101 | generaldelta |
|
102 | 102 | largefiles |
@@ -290,7 +290,7 b' The requirement is added to the destinat' | |||
|
290 | 290 | |
|
291 | 291 | $ cat .hg/requires |
|
292 | 292 | dotencode |
|
293 | exp-dirstate-v2 (dirstate-v2 !) | |
|
293 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
294 | 294 | fncache |
|
295 | 295 | generaldelta |
|
296 | 296 | lfs |
@@ -24,7 +24,7 b' narrow clone a file, f10' | |||
|
24 | 24 | $ cd narrow |
|
25 | 25 | $ cat .hg/requires | grep -v generaldelta |
|
26 | 26 | dotencode |
|
27 | exp-dirstate-v2 (dirstate-v2 !) | |
|
27 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
28 | 28 | fncache |
|
29 | 29 | narrowhg-experimental |
|
30 | 30 | persistent-nodemap (rust !) |
@@ -64,7 +64,7 b' Making sure we have the correct set of r' | |||
|
64 | 64 | $ cat .hg/requires |
|
65 | 65 | dotencode (tree !) |
|
66 | 66 | dotencode (flat-fncache !) |
|
67 | exp-dirstate-v2 (dirstate-v2 !) | |
|
67 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
68 | 68 | fncache (tree !) |
|
69 | 69 | fncache (flat-fncache !) |
|
70 | 70 | generaldelta |
@@ -40,7 +40,7 b' narrow clone a file, f10' | |||
|
40 | 40 | $ cd narrow |
|
41 | 41 | $ cat .hg/requires | grep -v generaldelta |
|
42 | 42 | dotencode |
|
43 | exp-dirstate-v2 (dirstate-v2 !) | |
|
43 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
44 | 44 | fncache |
|
45 | 45 | narrowhg-experimental |
|
46 | 46 | persistent-nodemap (rust !) |
@@ -58,7 +58,7 b' XXX: we should have a flag in `hg debugs' | |||
|
58 | 58 | |
|
59 | 59 | $ cat .hg/requires |
|
60 | 60 | dotencode |
|
61 | exp-dirstate-v2 (dirstate-v2 !) | |
|
61 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
62 | 62 | fncache |
|
63 | 63 | generaldelta |
|
64 | 64 | narrowhg-experimental |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | #if dirstate-v2 |
|
6 | 6 | $ cat >> $HGRCPATH << EOF |
|
7 | 7 | > [format] |
|
8 | > exp-dirstate-v2=1 | |
|
8 | > exp-rc-dirstate-v2=1 | |
|
9 | 9 | > [storage] |
|
10 | 10 | > dirstate-v2.slow-path=allow |
|
11 | 11 | > EOF |
@@ -800,7 +800,7 b' downgrading' | |||
|
800 | 800 | requirements |
|
801 | 801 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-zstd no-dirstate-v2 !) |
|
802 | 802 | preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd no-dirstate-v2 !) |
|
803 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
803 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
804 | 804 | removed: persistent-nodemap |
|
805 | 805 | |
|
806 | 806 | processed revlogs: |
@@ -844,7 +844,7 b' upgrading' | |||
|
844 | 844 | requirements |
|
845 | 845 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-zstd no-dirstate-v2 !) |
|
846 | 846 | preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd no-dirstate-v2 !) |
|
847 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
847 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
848 | 848 | added: persistent-nodemap |
|
849 | 849 | |
|
850 | 850 | processed revlogs: |
@@ -876,7 +876,7 b' Running unrelated upgrade' | |||
|
876 | 876 | requirements |
|
877 | 877 | preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (no-zstd no-dirstate-v2 !) |
|
878 | 878 | preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd no-dirstate-v2 !) |
|
879 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
879 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
880 | 880 | |
|
881 | 881 | optimisations: re-delta-all |
|
882 | 882 |
@@ -884,7 +884,7 b' Check we deny its usage on older reposit' | |||
|
884 | 884 | $ cd no-internal-phase |
|
885 | 885 | $ cat .hg/requires |
|
886 | 886 | dotencode |
|
887 | exp-dirstate-v2 (dirstate-v2 !) | |
|
887 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
888 | 888 | fncache |
|
889 | 889 | generaldelta |
|
890 | 890 | persistent-nodemap (rust !) |
@@ -913,7 +913,7 b' Check it works fine with repository that' | |||
|
913 | 913 | $ cd internal-phase |
|
914 | 914 | $ cat .hg/requires |
|
915 | 915 | dotencode |
|
916 | exp-dirstate-v2 (dirstate-v2 !) | |
|
916 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
917 | 917 | fncache |
|
918 | 918 | generaldelta |
|
919 | 919 | internal-phase |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | #if dirstate-v2 |
|
4 | 4 | $ cat >> $HGRCPATH << EOF |
|
5 | 5 | > [format] |
|
6 | > exp-dirstate-v2=1 | |
|
6 | > exp-rc-dirstate-v2=1 | |
|
7 | 7 | > [storage] |
|
8 | 8 | > dirstate-v2.slow-path=allow |
|
9 | 9 | > EOF |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | $ cd shallow |
|
28 | 28 | $ cat .hg/requires |
|
29 | 29 | dotencode |
|
30 | exp-dirstate-v2 (dirstate-v2 !) | |
|
30 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
31 | 31 | exp-remotefilelog-repo-req-1 |
|
32 | 32 | fncache |
|
33 | 33 | generaldelta |
@@ -71,7 +71,7 b'' | |||
|
71 | 71 | $ cd shallow2 |
|
72 | 72 | $ cat .hg/requires |
|
73 | 73 | dotencode |
|
74 | exp-dirstate-v2 (dirstate-v2 !) | |
|
74 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
75 | 75 | exp-remotefilelog-repo-req-1 |
|
76 | 76 | fncache |
|
77 | 77 | generaldelta |
@@ -115,7 +115,7 b'' | |||
|
115 | 115 | $ ls shallow3/.hg/store/data |
|
116 | 116 | $ cat shallow3/.hg/requires |
|
117 | 117 | dotencode |
|
118 | exp-dirstate-v2 (dirstate-v2 !) | |
|
118 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
119 | 119 | exp-remotefilelog-repo-req-1 |
|
120 | 120 | fncache |
|
121 | 121 | generaldelta |
@@ -24,7 +24,7 b'' | |||
|
24 | 24 | $ cd shallow |
|
25 | 25 | $ cat .hg/requires |
|
26 | 26 | dotencode |
|
27 | exp-dirstate-v2 (dirstate-v2 !) | |
|
27 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
28 | 28 | exp-remotefilelog-repo-req-1 |
|
29 | 29 | fncache |
|
30 | 30 | generaldelta |
@@ -61,7 +61,7 b'' | |||
|
61 | 61 | $ cd shallow2 |
|
62 | 62 | $ cat .hg/requires |
|
63 | 63 | dotencode |
|
64 | exp-dirstate-v2 (dirstate-v2 !) | |
|
64 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
65 | 65 | exp-remotefilelog-repo-req-1 |
|
66 | 66 | fncache |
|
67 | 67 | generaldelta |
@@ -113,7 +113,7 b' check its contents separately.' | |||
|
113 | 113 | $ ls shallow3/.hg/store/data |
|
114 | 114 | $ cat shallow3/.hg/requires |
|
115 | 115 | dotencode |
|
116 | exp-dirstate-v2 (dirstate-v2 !) | |
|
116 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
117 | 117 | exp-remotefilelog-repo-req-1 |
|
118 | 118 | fncache |
|
119 | 119 | generaldelta |
@@ -27,7 +27,7 b' Shallow clone from full' | |||
|
27 | 27 | $ cd shallow |
|
28 | 28 | $ cat .hg/requires |
|
29 | 29 | dotencode |
|
30 | exp-dirstate-v2 (dirstate-v2 !) | |
|
30 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
31 | 31 | exp-remotefilelog-repo-req-1 |
|
32 | 32 | fncache |
|
33 | 33 | generaldelta |
@@ -11,7 +11,7 b' A new repository uses zlib storage, whic' | |||
|
11 | 11 | $ cd default |
|
12 | 12 | $ cat .hg/requires |
|
13 | 13 | dotencode |
|
14 | exp-dirstate-v2 (dirstate-v2 !) | |
|
14 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
15 | 15 | fncache |
|
16 | 16 | generaldelta |
|
17 | 17 | persistent-nodemap (rust !) |
@@ -61,7 +61,7 b' with that engine or a requirement' | |||
|
61 | 61 | |
|
62 | 62 | $ cat .hg/requires |
|
63 | 63 | dotencode |
|
64 | exp-dirstate-v2 (dirstate-v2 !) | |
|
64 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
65 | 65 | fncache |
|
66 | 66 | generaldelta |
|
67 | 67 | persistent-nodemap (rust !) |
@@ -81,7 +81,7 b' with that engine or a requirement' | |||
|
81 | 81 | $ cd zstd |
|
82 | 82 | $ cat .hg/requires |
|
83 | 83 | dotencode |
|
84 | exp-dirstate-v2 (dirstate-v2 !) | |
|
84 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
85 | 85 | fncache |
|
86 | 86 | generaldelta |
|
87 | 87 | persistent-nodemap (rust !) |
@@ -186,7 +186,7 b' checking details of none compression' | |||
|
186 | 186 | $ cat none-compression/.hg/requires |
|
187 | 187 | dotencode |
|
188 | 188 | exp-compression-none |
|
189 | exp-dirstate-v2 (dirstate-v2 !) | |
|
189 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
190 | 190 | fncache |
|
191 | 191 | generaldelta |
|
192 | 192 | persistent-nodemap (rust !) |
@@ -50,7 +50,7 b' another repository of push/pull/clone on' | |||
|
50 | 50 | > EOF |
|
51 | 51 | $ hg -R supported debugrequirements |
|
52 | 52 | dotencode |
|
53 | exp-dirstate-v2 (dirstate-v2 !) | |
|
53 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
54 | 54 | featuresetup-test |
|
55 | 55 | fncache |
|
56 | 56 | generaldelta |
@@ -22,7 +22,7 b' Can create and open repo with revlog v2 ' | |||
|
22 | 22 | $ cd new-repo |
|
23 | 23 | $ cat .hg/requires |
|
24 | 24 | dotencode |
|
25 | exp-dirstate-v2 (dirstate-v2 !) | |
|
25 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
26 | 26 | exp-revlogv2.2 |
|
27 | 27 | fncache |
|
28 | 28 | generaldelta |
@@ -19,7 +19,7 b' prepare source repo' | |||
|
19 | 19 | $ hg init source |
|
20 | 20 | $ cd source |
|
21 | 21 | $ cat .hg/requires |
|
22 | exp-dirstate-v2 (dirstate-v2 !) | |
|
22 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
23 | 23 | share-safe |
|
24 | 24 | $ cat .hg/store/requires |
|
25 | 25 | dotencode |
@@ -30,7 +30,7 b' prepare source repo' | |||
|
30 | 30 | store |
|
31 | 31 | $ hg debugrequirements |
|
32 | 32 | dotencode |
|
33 | exp-dirstate-v2 (dirstate-v2 !) | |
|
33 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
34 | 34 | fncache |
|
35 | 35 | generaldelta |
|
36 | 36 | revlogv1 |
@@ -54,13 +54,13 b' Create a shared repo and check the requi' | |||
|
54 | 54 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
55 | 55 | $ cd shared1 |
|
56 | 56 | $ cat .hg/requires |
|
57 | exp-dirstate-v2 (dirstate-v2 !) | |
|
57 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
58 | 58 | share-safe |
|
59 | 59 | shared |
|
60 | 60 | |
|
61 | 61 | $ hg debugrequirements -R ../source |
|
62 | 62 | dotencode |
|
63 | exp-dirstate-v2 (dirstate-v2 !) | |
|
63 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
64 | 64 | fncache |
|
65 | 65 | generaldelta |
|
66 | 66 | revlogv1 |
@@ -70,7 +70,7 b' Create a shared repo and check the requi' | |||
|
70 | 70 | |
|
71 | 71 | $ hg debugrequirements |
|
72 | 72 | dotencode |
|
73 | exp-dirstate-v2 (dirstate-v2 !) | |
|
73 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
74 | 74 | fncache |
|
75 | 75 | generaldelta |
|
76 | 76 | revlogv1 |
@@ -225,7 +225,7 b' Disable zstd related tests because its n' | |||
|
225 | 225 | |
|
226 | 226 | requirements |
|
227 | 227 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-dirstate-v2 !) |
|
228 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (dirstate-v2 !) | |
|
228 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (dirstate-v2 !) | |
|
229 | 229 | added: revlog-compression-zstd |
|
230 | 230 | |
|
231 | 231 | processed revlogs: |
@@ -253,8 +253,8 b' Disable zstd related tests because its n' | |||
|
253 | 253 | requirements |
|
254 | 254 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-zstd no-dirstate-v2 !) |
|
255 | 255 | preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd no-dirstate-v2 !) |
|
256 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-zstd dirstate-v2 !) | |
|
257 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
256 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-zstd dirstate-v2 !) | |
|
257 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd dirstate-v2 !) | |
|
258 | 258 | added: persistent-nodemap |
|
259 | 259 | |
|
260 | 260 | processed revlogs: |
@@ -327,7 +327,7 b' Test that upgrading using debugupgradere' | |||
|
327 | 327 | $ cd non-share-safe |
|
328 | 328 | $ hg debugrequirements |
|
329 | 329 | dotencode |
|
330 | exp-dirstate-v2 (dirstate-v2 !) | |
|
330 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
331 | 331 | fncache |
|
332 | 332 | generaldelta |
|
333 | 333 | revlogv1 |
@@ -346,7 +346,7 b' Create a share before upgrading' | |||
|
346 | 346 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
347 | 347 | $ hg debugrequirements -R nss-share |
|
348 | 348 | dotencode |
|
349 | exp-dirstate-v2 (dirstate-v2 !) | |
|
349 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
350 | 350 | fncache |
|
351 | 351 | generaldelta |
|
352 | 352 | revlogv1 |
@@ -360,7 +360,7 b' Upgrade' | |||
|
360 | 360 | $ hg debugupgraderepo -q |
|
361 | 361 | requirements |
|
362 | 362 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
|
363 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
363 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
364 | 364 | added: share-safe |
|
365 | 365 | |
|
366 | 366 | processed revlogs: |
@@ -373,7 +373,7 b' Upgrade' | |||
|
373 | 373 | |
|
374 | 374 | requirements |
|
375 | 375 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
|
376 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
376 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
377 | 377 | added: share-safe |
|
378 | 378 | |
|
379 | 379 | share-safe |
@@ -394,7 +394,7 b' Upgrade' | |||
|
394 | 394 | |
|
395 | 395 | $ hg debugrequirements |
|
396 | 396 | dotencode |
|
397 | exp-dirstate-v2 (dirstate-v2 !) | |
|
397 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
398 | 398 | fncache |
|
399 | 399 | generaldelta |
|
400 | 400 | revlogv1 |
@@ -403,7 +403,7 b' Upgrade' | |||
|
403 | 403 | store |
|
404 | 404 | |
|
405 | 405 | $ cat .hg/requires |
|
406 | exp-dirstate-v2 (dirstate-v2 !) | |
|
406 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
407 | 407 | share-safe |
|
408 | 408 | |
|
409 | 409 | $ cat .hg/store/requires |
@@ -454,7 +454,7 b' Test that downgrading works too' | |||
|
454 | 454 | $ hg debugupgraderepo -q |
|
455 | 455 | requirements |
|
456 | 456 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
|
457 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
457 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
458 | 458 | removed: share-safe |
|
459 | 459 | |
|
460 | 460 | processed revlogs: |
@@ -467,7 +467,7 b' Test that downgrading works too' | |||
|
467 | 467 | |
|
468 | 468 | requirements |
|
469 | 469 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
|
470 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
470 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
471 | 471 | removed: share-safe |
|
472 | 472 | |
|
473 | 473 | processed revlogs: |
@@ -485,7 +485,7 b' Test that downgrading works too' | |||
|
485 | 485 | |
|
486 | 486 | $ hg debugrequirements |
|
487 | 487 | dotencode |
|
488 | exp-dirstate-v2 (dirstate-v2 !) | |
|
488 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
489 | 489 | fncache |
|
490 | 490 | generaldelta |
|
491 | 491 | revlogv1 |
@@ -494,7 +494,7 b' Test that downgrading works too' | |||
|
494 | 494 | |
|
495 | 495 | $ cat .hg/requires |
|
496 | 496 | dotencode |
|
497 | exp-dirstate-v2 (dirstate-v2 !) | |
|
497 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
498 | 498 | fncache |
|
499 | 499 | generaldelta |
|
500 | 500 | revlogv1 |
@@ -553,7 +553,7 b' Testing automatic upgrade of shares when' | |||
|
553 | 553 | |
|
554 | 554 | requirements |
|
555 | 555 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
|
556 | preserved: dotencode, exp-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
556 | preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | |
|
557 | 557 | added: share-safe |
|
558 | 558 | |
|
559 | 559 | processed revlogs: |
@@ -564,7 +564,7 b' Testing automatic upgrade of shares when' | |||
|
564 | 564 | repository upgraded to share safe mode, existing shares will still work in old non-safe mode. Re-share existing shares to use them in safe mode New shares will be created in safe mode. |
|
565 | 565 | $ hg debugrequirements |
|
566 | 566 | dotencode |
|
567 | exp-dirstate-v2 (dirstate-v2 !) | |
|
567 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
568 | 568 | fncache |
|
569 | 569 | generaldelta |
|
570 | 570 | revlogv1 |
@@ -18,7 +18,7 b' Enable sparse profile' | |||
|
18 | 18 | |
|
19 | 19 | $ cat .hg/requires |
|
20 | 20 | dotencode |
|
21 | exp-dirstate-v2 (dirstate-v2 !) | |
|
21 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
22 | 22 | fncache |
|
23 | 23 | generaldelta |
|
24 | 24 | persistent-nodemap (rust !) |
@@ -38,7 +38,7 b' Requirement for sparse added when sparse' | |||
|
38 | 38 | |
|
39 | 39 | $ cat .hg/requires |
|
40 | 40 | dotencode |
|
41 | exp-dirstate-v2 (dirstate-v2 !) | |
|
41 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
42 | 42 | exp-sparse |
|
43 | 43 | fncache |
|
44 | 44 | generaldelta |
@@ -61,7 +61,7 b' Requirement for sparse is removed when s' | |||
|
61 | 61 | |
|
62 | 62 | $ cat .hg/requires |
|
63 | 63 | dotencode |
|
64 | exp-dirstate-v2 (dirstate-v2 !) | |
|
64 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
65 | 65 | fncache |
|
66 | 66 | generaldelta |
|
67 | 67 | persistent-nodemap (rust !) |
@@ -15,7 +15,7 b' New repo should not use SQLite by defaul' | |||
|
15 | 15 | $ hg init empty-no-sqlite |
|
16 | 16 | $ cat empty-no-sqlite/.hg/requires |
|
17 | 17 | dotencode |
|
18 | exp-dirstate-v2 (dirstate-v2 !) | |
|
18 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
19 | 19 | fncache |
|
20 | 20 | generaldelta |
|
21 | 21 | persistent-nodemap (rust !) |
@@ -29,7 +29,7 b' storage.new-repo-backend=sqlite is recog' | |||
|
29 | 29 | $ hg --config storage.new-repo-backend=sqlite init empty-sqlite |
|
30 | 30 | $ cat empty-sqlite/.hg/requires |
|
31 | 31 | dotencode |
|
32 | exp-dirstate-v2 (dirstate-v2 !) | |
|
32 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
33 | 33 | exp-sqlite-001 |
|
34 | 34 | exp-sqlite-comp-001=zstd (zstd !) |
|
35 | 35 | exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$ (no-zstd !) |
@@ -51,7 +51,7 b' Can force compression to zlib' | |||
|
51 | 51 | $ hg --config storage.sqlite.compression=zlib init empty-zlib |
|
52 | 52 | $ cat empty-zlib/.hg/requires |
|
53 | 53 | dotencode |
|
54 | exp-dirstate-v2 (dirstate-v2 !) | |
|
54 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
55 | 55 | exp-sqlite-001 |
|
56 | 56 | exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$ |
|
57 | 57 | fncache |
@@ -67,7 +67,7 b' Can force compression to none' | |||
|
67 | 67 | $ hg --config storage.sqlite.compression=none init empty-none |
|
68 | 68 | $ cat empty-none/.hg/requires |
|
69 | 69 | dotencode |
|
70 | exp-dirstate-v2 (dirstate-v2 !) | |
|
70 | exp-rc-dirstate-v2 (dirstate-v2 !) | |
|
71 | 71 | exp-sqlite-001 |
|
72 | 72 | exp-sqlite-comp-001=none |
|
73 | 73 | fncache |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | #if dirstate-v2 |
|
4 | 4 | $ cat >> $HGRCPATH << EOF |
|
5 | 5 | > [format] |
|
6 | > exp-dirstate-v2=1 | |
|
6 | > exp-rc-dirstate-v2=1 | |
|
7 | 7 | > [storage] |
|
8 | 8 | > dirstate-v2.slow-path=allow |
|
9 | 9 | > EOF |
@@ -48,12 +48,12 b' The extension requires a repo (currently' | |||
|
48 | 48 | stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Csparserevlog%2Cstore} (mandatory: True) (no-zstd !) |
|
49 | 49 | stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cfncache%2Cgeneraldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore} (mandatory: True) (zstd no-rust !) |
|
50 | 50 | stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cfncache%2Cgeneraldelta%2Cpersistent-nodemap%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore} (mandatory: True) (rust no-dirstate-v2 !) |
|
51 | stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cexp-dirstate-v2%2Cfncache%2Cgeneraldelta%2Cpersistent-nodemap%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore} (mandatory: True) (dirstate-v2 !) | |
|
51 | stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cexp-rc-dirstate-v2%2Cfncache%2Cgeneraldelta%2Cpersistent-nodemap%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore} (mandatory: True) (dirstate-v2 !) | |
|
52 | 52 | $ hg debugbundle --spec bundle.hg |
|
53 | 53 | none-v2;stream=v2;requirements%3Ddotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Csparserevlog%2Cstore (no-zstd !) |
|
54 | 54 | none-v2;stream=v2;requirements%3Ddotencode%2Cfncache%2Cgeneraldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore (zstd no-rust !) |
|
55 | 55 | none-v2;stream=v2;requirements%3Ddotencode%2Cfncache%2Cgeneraldelta%2Cpersistent-nodemap%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore (rust no-dirstate-v2 !) |
|
56 | none-v2;stream=v2;requirements%3Ddotencode%2Cexp-dirstate-v2%2Cfncache%2Cgeneraldelta%2Cpersistent-nodemap%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore (dirstate-v2 !) | |
|
56 | none-v2;stream=v2;requirements%3Ddotencode%2Cexp-rc-dirstate-v2%2Cfncache%2Cgeneraldelta%2Cpersistent-nodemap%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog%2Cstore (dirstate-v2 !) | |
|
57 | 57 | |
|
58 | 58 | Test that we can apply the bundle as a stream clone bundle |
|
59 | 59 |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | #if dirstate-v2 |
|
6 | 6 | $ cat >> $HGRCPATH << EOF |
|
7 | 7 | > [format] |
|
8 | > exp-dirstate-v2=1 | |
|
8 | > exp-rc-dirstate-v2=1 | |
|
9 | 9 | > [storage] |
|
10 | 10 | > dirstate-v2.slow-path=allow |
|
11 | 11 | > EOF |
@@ -1638,7 +1638,7 b' Demonstrate that nothing to perform upgr' | |||
|
1638 | 1638 | |
|
1639 | 1639 | Upgrade to dirstate-v2 |
|
1640 | 1640 | |
|
1641 | $ hg debugformat -v --config format.exp-dirstate-v2=1 | |
|
1641 | $ hg debugformat -v --config format.exp-rc-dirstate-v2=1 | |
|
1642 | 1642 | format-variant repo config default |
|
1643 | 1643 | fncache: yes yes yes |
|
1644 | 1644 | dirstate-v2: no yes no |
@@ -1653,12 +1653,12 b' Upgrade to dirstate-v2' | |||
|
1653 | 1653 | plain-cl-delta: yes yes yes |
|
1654 | 1654 | compression: zstd zstd zstd |
|
1655 | 1655 | compression-level: default default default |
|
1656 | $ hg debugupgraderepo --config format.exp-dirstate-v2=1 --run | |
|
1656 | $ hg debugupgraderepo --config format.exp-rc-dirstate-v2=1 --run | |
|
1657 | 1657 | upgrade will perform the following actions: |
|
1658 | 1658 | |
|
1659 | 1659 | requirements |
|
1660 | 1660 | preserved: dotencode, exp-revlogv2.2, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store |
|
1661 |
added: |
|
|
1661 | added: dirstate-v2 | |
|
1662 | 1662 | |
|
1663 | 1663 | dirstate-v2 |
|
1664 | 1664 | "hg status" will be faster |
@@ -1703,7 +1703,7 b' Downgrade from dirstate-v2' | |||
|
1703 | 1703 | |
|
1704 | 1704 | requirements |
|
1705 | 1705 | preserved: dotencode, exp-revlogv2.2, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store |
|
1706 |
removed: |
|
|
1706 | removed: dirstate-v2 | |
|
1707 | 1707 | |
|
1708 | 1708 | processed revlogs: |
|
1709 | 1709 | - all-filelogs |
General Comments 0
You need to be logged in to leave comments.
Login now