Show More
@@ -1272,9 +1272,8 b' coreconfigitem(' | |||||
1272 | ) |
|
1272 | ) | |
1273 | coreconfigitem( |
|
1273 | coreconfigitem( | |
1274 | b'format', |
|
1274 | b'format', | |
1275 |
b'e |
|
1275 | b'use-share-safe', | |
1276 | default=False, |
|
1276 | default=False, | |
1277 | experimental=True, |
|
|||
1278 | ) |
|
1277 | ) | |
1279 | coreconfigitem( |
|
1278 | coreconfigitem( | |
1280 | b'format', |
|
1279 | b'format', |
@@ -914,6 +914,12 b' https://www.mercurial-scm.org/wiki/Missi' | |||||
914 |
|
914 | |||
915 | Disabled by default. |
|
915 | Disabled by default. | |
916 |
|
916 | |||
|
917 | ``use-share-safe`` | |||
|
918 | Enable or disable the "share-safe" functionality, which enables shares | |||
|
919 | to read requirements and configuration of its source repository. | |||
|
920 | ||||
|
921 | Disabled by default. | |||
|
922 | ||||
917 | ``usestore`` |
|
923 | ``usestore`` | |
918 | Enable or disable the "store" repository format which improves |
|
924 | Enable or disable the "store" repository format which improves | |
919 | compatibility with systems that fold case or otherwise mangle |
|
925 | compatibility with systems that fold case or otherwise mangle |
@@ -159,10 +159,6 b' keep the index up to date, but will suff' | |||||
159 | exp-sharesafe |
|
159 | exp-sharesafe | |
160 | ============= |
|
160 | ============= | |
161 |
|
161 | |||
162 | NOTE: This requirement is for internal development only. The semantics are not |
|
|||
163 | frozed yet, the feature is experimental. It's not advised to use it for any |
|
|||
164 | production repository yet. |
|
|||
165 |
|
||||
166 | Represents that the repository can be shared safely. Requirements and config of |
|
162 | Represents that the repository can be shared safely. Requirements and config of | |
167 | the source repository will be shared. |
|
163 | the source repository will be shared. | |
168 | Requirements are stored in ``.hg/store`` instead of directly in ``.hg/`` where |
|
164 | Requirements are stored in ``.hg/store`` instead of directly in ``.hg/`` where | |
@@ -172,5 +168,5 b' Shares read the ``.hg/hgrc`` of the sour' | |||||
172 |
|
168 | |||
173 | Support for this requirement was added in Mercurial 5.7 (released |
|
169 | Support for this requirement was added in Mercurial 5.7 (released | |
174 | February 2021). The requirement will only be present on repositories that have |
|
170 | February 2021). The requirement will only be present on repositories that have | |
175 |
opted in to this format (by having ``format.e |
|
171 | opted in to this format (by having ``format.use-share-safe=true`` set when | |
176 | they were created). |
|
172 | they were created). |
@@ -3474,7 +3474,7 b' def newreporequirements(ui, createopts):' | |||||
3474 |
|
3474 | |||
3475 | # if share-safe is enabled, let's create the new repository with the new |
|
3475 | # if share-safe is enabled, let's create the new repository with the new | |
3476 | # requirement |
|
3476 | # requirement | |
3477 |
if ui.configbool(b'format', b'e |
|
3477 | if ui.configbool(b'format', b'use-share-safe'): | |
3478 | requirements.add(requirementsmod.SHARESAFE_REQUIREMENT) |
|
3478 | requirements.add(requirementsmod.SHARESAFE_REQUIREMENT) | |
3479 |
|
3479 | |||
3480 | return requirements |
|
3480 | return requirements | |
@@ -3513,7 +3513,7 b' def checkrequirementscompat(ui, requirem' | |||||
3513 | if requirementsmod.SHARESAFE_REQUIREMENT in requirements: |
|
3513 | if requirementsmod.SHARESAFE_REQUIREMENT in requirements: | |
3514 | ui.warn( |
|
3514 | ui.warn( | |
3515 | _( |
|
3515 | _( | |
3516 |
b"ignoring enabled 'format.e |
|
3516 | b"ignoring enabled 'format.use-share-safe' config because " | |
3517 | b"it is incompatible with disabled 'format.usestore'" |
|
3517 | b"it is incompatible with disabled 'format.usestore'" | |
3518 | b" config\n" |
|
3518 | b" config\n" | |
3519 | ) |
|
3519 | ) |
@@ -55,7 +55,7 b" RELATIVE_SHARED_REQUIREMENT = b'relshare" | |||||
55 | # A repository with share implemented safely. The repository has different |
|
55 | # A repository with share implemented safely. The repository has different | |
56 | # store and working copy requirements i.e. both `.hg/requires` and |
|
56 | # store and working copy requirements i.e. both `.hg/requires` and | |
57 | # `.hg/store/requires` are present. |
|
57 | # `.hg/store/requires` are present. | |
58 |
SHARESAFE_REQUIREMENT = b' |
|
58 | SHARESAFE_REQUIREMENT = b'share-safe' | |
59 |
|
59 | |||
60 | # List of requirements which are working directory specific |
|
60 | # List of requirements which are working directory specific | |
61 | # These requirements cannot be shared between repositories if they |
|
61 | # These requirements cannot be shared between repositories if they |
@@ -237,7 +237,7 b' class generaldelta(requirementformatvari' | |||||
237 |
|
237 | |||
238 | @registerformatvariant |
|
238 | @registerformatvariant | |
239 | class sharesafe(requirementformatvariant): |
|
239 | class sharesafe(requirementformatvariant): | |
240 |
name = b' |
|
240 | name = b'share-safe' | |
241 | _requirement = requirements.SHARESAFE_REQUIREMENT |
|
241 | _requirement = requirements.SHARESAFE_REQUIREMENT | |
242 |
|
242 | |||
243 | default = False |
|
243 | default = False |
@@ -696,7 +696,7 b' We upgrade a repository that is not usin' | |||||
696 | fncache: yes yes yes |
|
696 | fncache: yes yes yes | |
697 | dotencode: yes yes yes |
|
697 | dotencode: yes yes yes | |
698 | generaldelta: yes yes yes |
|
698 | generaldelta: yes yes yes | |
699 |
e |
|
699 | share-safe: no no no | |
700 | sparserevlog: yes yes yes |
|
700 | sparserevlog: yes yes yes | |
701 | sidedata: no yes no |
|
701 | sidedata: no yes no | |
702 | persistent-nodemap: no no no |
|
702 | persistent-nodemap: no no no |
@@ -37,7 +37,7 b' Check that copies are recorded correctly' | |||||
37 | fncache: yes yes yes |
|
37 | fncache: yes yes yes | |
38 | dotencode: yes yes yes |
|
38 | dotencode: yes yes yes | |
39 | generaldelta: yes yes yes |
|
39 | generaldelta: yes yes yes | |
40 |
e |
|
40 | share-safe: no no no | |
41 | sparserevlog: yes yes yes |
|
41 | sparserevlog: yes yes yes | |
42 | sidedata: yes yes no |
|
42 | sidedata: yes yes no | |
43 | persistent-nodemap: no no no |
|
43 | persistent-nodemap: no no no | |
@@ -51,7 +51,7 b' Check that copies are recorded correctly' | |||||
51 | fncache: yes yes yes |
|
51 | fncache: yes yes yes | |
52 | dotencode: yes yes yes |
|
52 | dotencode: yes yes yes | |
53 | generaldelta: yes yes yes |
|
53 | generaldelta: yes yes yes | |
54 |
e |
|
54 | share-safe: no no no | |
55 | sparserevlog: yes yes yes |
|
55 | sparserevlog: yes yes yes | |
56 | sidedata: no no no |
|
56 | sidedata: no no no | |
57 | persistent-nodemap: no no no |
|
57 | persistent-nodemap: no no no | |
@@ -419,7 +419,7 b' downgrading (keeping some sidedata)' | |||||
419 | fncache: yes yes yes |
|
419 | fncache: yes yes yes | |
420 | dotencode: yes yes yes |
|
420 | dotencode: yes yes yes | |
421 | generaldelta: yes yes yes |
|
421 | generaldelta: yes yes yes | |
422 |
e |
|
422 | share-safe: no no no | |
423 | sparserevlog: yes yes yes |
|
423 | sparserevlog: yes yes yes | |
424 | sidedata: yes yes no |
|
424 | sidedata: yes yes no | |
425 | persistent-nodemap: no no no |
|
425 | persistent-nodemap: no no no | |
@@ -445,7 +445,7 b' downgrading (keeping some sidedata)' | |||||
445 | fncache: yes yes yes |
|
445 | fncache: yes yes yes | |
446 | dotencode: yes yes yes |
|
446 | dotencode: yes yes yes | |
447 | generaldelta: yes yes yes |
|
447 | generaldelta: yes yes yes | |
448 |
e |
|
448 | share-safe: no no no | |
449 | sparserevlog: yes yes yes |
|
449 | sparserevlog: yes yes yes | |
450 | sidedata: yes yes no |
|
450 | sidedata: yes yes no | |
451 | persistent-nodemap: no no no |
|
451 | persistent-nodemap: no no no | |
@@ -473,7 +473,7 b' upgrading' | |||||
473 | fncache: yes yes yes |
|
473 | fncache: yes yes yes | |
474 | dotencode: yes yes yes |
|
474 | dotencode: yes yes yes | |
475 | generaldelta: yes yes yes |
|
475 | generaldelta: yes yes yes | |
476 |
e |
|
476 | share-safe: no no no | |
477 | sparserevlog: yes yes yes |
|
477 | sparserevlog: yes yes yes | |
478 | sidedata: yes yes no |
|
478 | sidedata: yes yes no | |
479 | persistent-nodemap: no no no |
|
479 | persistent-nodemap: no no no |
@@ -1553,6 +1553,8 b' Separate sections from subsections' | |||||
1553 |
|
1553 | |||
1554 | "use-persistent-nodemap" |
|
1554 | "use-persistent-nodemap" | |
1555 |
|
1555 | |||
|
1556 | "use-share-safe" | |||
|
1557 | ||||
1556 | "usestore" |
|
1558 | "usestore" | |
1557 |
|
1559 | |||
1558 | "sparse-revlog" |
|
1560 | "sparse-revlog" |
@@ -37,7 +37,7 b' Unlock further check (we are here to tes' | |||||
37 | fncache: yes |
|
37 | fncache: yes | |
38 | dotencode: yes |
|
38 | dotencode: yes | |
39 | generaldelta: yes |
|
39 | generaldelta: yes | |
40 |
e |
|
40 | share-safe: no | |
41 | sparserevlog: yes |
|
41 | sparserevlog: yes | |
42 | sidedata: no |
|
42 | sidedata: no | |
43 | persistent-nodemap: yes |
|
43 | persistent-nodemap: yes | |
@@ -556,7 +556,7 b' downgrading' | |||||
556 | fncache: yes yes yes |
|
556 | fncache: yes yes yes | |
557 | dotencode: yes yes yes |
|
557 | dotencode: yes yes yes | |
558 | generaldelta: yes yes yes |
|
558 | generaldelta: yes yes yes | |
559 |
|
|
559 | share-safe: no no no | |
560 | sparserevlog: yes yes yes |
|
560 | sparserevlog: yes yes yes | |
561 | sidedata: no no no |
|
561 | sidedata: no no no | |
562 | persistent-nodemap: yes no no |
|
562 | persistent-nodemap: yes no no | |
@@ -592,7 +592,7 b' upgrading' | |||||
592 | fncache: yes yes yes |
|
592 | fncache: yes yes yes | |
593 | dotencode: yes yes yes |
|
593 | dotencode: yes yes yes | |
594 | generaldelta: yes yes yes |
|
594 | generaldelta: yes yes yes | |
595 |
|
|
595 | share-safe: no no no | |
596 | sparserevlog: yes yes yes |
|
596 | sparserevlog: yes yes yes | |
597 | sidedata: no no no |
|
597 | sidedata: no no no | |
598 | persistent-nodemap: no yes no |
|
598 | persistent-nodemap: no yes no |
@@ -3,7 +3,7 b'' | |||||
3 |
|
3 | |||
4 | #if safe |
|
4 | #if safe | |
5 | $ echo "[format]" >> $HGRCPATH |
|
5 | $ echo "[format]" >> $HGRCPATH | |
6 |
$ echo "e |
|
6 | $ echo "use-share-safe = True" >> $HGRCPATH | |
7 | #endif |
|
7 | #endif | |
8 |
|
8 | |||
9 | $ echo "[extensions]" >> $HGRCPATH |
|
9 | $ echo "[extensions]" >> $HGRCPATH | |
@@ -290,4 +290,4 b' Test that if store is disabled, we drop ' | |||||
290 |
|
290 | |||
291 | $ hg init brokenrepo --config format.bookmarks-in-store=True --config format.usestore=false |
|
291 | $ hg init brokenrepo --config format.bookmarks-in-store=True --config format.usestore=false | |
292 | ignoring enabled 'format.bookmarks-in-store' config beacuse it is incompatible with disabled 'format.usestore' config |
|
292 | ignoring enabled 'format.bookmarks-in-store' config beacuse it is incompatible with disabled 'format.usestore' config | |
293 |
ignoring enabled 'format.e |
|
293 | ignoring enabled 'format.use-share-safe' config because it is incompatible with disabled 'format.usestore' config (safe !) |
@@ -4,7 +4,7 b' setup' | |||||
4 | > [extensions] |
|
4 | > [extensions] | |
5 | > share = |
|
5 | > share = | |
6 | > [format] |
|
6 | > [format] | |
7 |
> e |
|
7 | > use-share-safe = True | |
8 | > [storage] |
|
8 | > [storage] | |
9 | > revlog.persistent-nodemap.slow-path=allow |
|
9 | > revlog.persistent-nodemap.slow-path=allow | |
10 | > EOF |
|
10 | > EOF | |
@@ -14,7 +14,7 b' prepare source repo' | |||||
14 | $ hg init source |
|
14 | $ hg init source | |
15 | $ cd source |
|
15 | $ cd source | |
16 | $ cat .hg/requires |
|
16 | $ cat .hg/requires | |
17 |
e |
|
17 | share-safe | |
18 | $ cat .hg/store/requires |
|
18 | $ cat .hg/store/requires | |
19 | dotencode |
|
19 | dotencode | |
20 | fncache |
|
20 | fncache | |
@@ -24,10 +24,10 b' prepare source repo' | |||||
24 | store |
|
24 | store | |
25 | $ hg debugrequirements |
|
25 | $ hg debugrequirements | |
26 | dotencode |
|
26 | dotencode | |
27 | exp-sharesafe |
|
|||
28 | fncache |
|
27 | fncache | |
29 | generaldelta |
|
28 | generaldelta | |
30 | revlogv1 |
|
29 | revlogv1 | |
|
30 | share-safe | |||
31 | sparserevlog |
|
31 | sparserevlog | |
32 | store |
|
32 | store | |
33 |
|
33 | |||
@@ -47,24 +47,24 b' Create a shared repo and check the requi' | |||||
47 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
47 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
48 | $ cd shared1 |
|
48 | $ cd shared1 | |
49 | $ cat .hg/requires |
|
49 | $ cat .hg/requires | |
50 |
|
|
50 | share-safe | |
51 | shared |
|
51 | shared | |
52 |
|
52 | |||
53 | $ hg debugrequirements -R ../source |
|
53 | $ hg debugrequirements -R ../source | |
54 | dotencode |
|
54 | dotencode | |
55 | exp-sharesafe |
|
|||
56 | fncache |
|
55 | fncache | |
57 | generaldelta |
|
56 | generaldelta | |
58 | revlogv1 |
|
57 | revlogv1 | |
|
58 | share-safe | |||
59 | sparserevlog |
|
59 | sparserevlog | |
60 | store |
|
60 | store | |
61 |
|
61 | |||
62 | $ hg debugrequirements |
|
62 | $ hg debugrequirements | |
63 | dotencode |
|
63 | dotencode | |
64 | exp-sharesafe |
|
|||
65 | fncache |
|
64 | fncache | |
66 | generaldelta |
|
65 | generaldelta | |
67 | revlogv1 |
|
66 | revlogv1 | |
|
67 | share-safe | |||
68 | shared |
|
68 | shared | |
69 | sparserevlog |
|
69 | sparserevlog | |
70 | store |
|
70 | store | |
@@ -214,7 +214,7 b' Disable zstd related tests because its n' | |||||
214 | upgrade will perform the following actions: |
|
214 | upgrade will perform the following actions: | |
215 |
|
215 | |||
216 | requirements |
|
216 | requirements | |
217 |
preserved: dotencode |
|
217 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store | |
218 | added: revlog-compression-zstd |
|
218 | added: revlog-compression-zstd | |
219 |
|
219 | |||
220 | processed revlogs: |
|
220 | processed revlogs: | |
@@ -240,8 +240,8 b' Disable zstd related tests because its n' | |||||
240 | upgrade will perform the following actions: |
|
240 | upgrade will perform the following actions: | |
241 |
|
241 | |||
242 | requirements |
|
242 | requirements | |
243 |
preserved: dotencode |
|
243 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-zstd !) | |
244 |
preserved: dotencode |
|
244 | preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, revlogv1, share-safe, sparserevlog, store (zstd !) | |
245 | added: persistent-nodemap |
|
245 | added: persistent-nodemap | |
246 |
|
246 | |||
247 | processed revlogs: |
|
247 | processed revlogs: | |
@@ -310,7 +310,7 b' of current repo is still respected over ' | |||||
310 | Test that upgrading using debugupgraderepo works |
|
310 | Test that upgrading using debugupgraderepo works | |
311 | ================================================= |
|
311 | ================================================= | |
312 |
|
312 | |||
313 |
$ hg init non-share-safe --config format.e |
|
313 | $ hg init non-share-safe --config format.use-share-safe=false | |
314 | $ cd non-share-safe |
|
314 | $ cd non-share-safe | |
315 | $ hg debugrequirements |
|
315 | $ hg debugrequirements | |
316 | dotencode |
|
316 | dotencode | |
@@ -345,7 +345,7 b' Upgrade' | |||||
345 | $ hg debugupgraderepo -q |
|
345 | $ hg debugupgraderepo -q | |
346 | requirements |
|
346 | requirements | |
347 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
347 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
348 |
added: e |
|
348 | added: share-safe | |
349 |
|
349 | |||
350 | processed revlogs: |
|
350 | processed revlogs: | |
351 | - all-filelogs |
|
351 | - all-filelogs | |
@@ -357,7 +357,7 b' Upgrade' | |||||
357 |
|
357 | |||
358 | requirements |
|
358 | requirements | |
359 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
359 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
360 |
added: e |
|
360 | added: share-safe | |
361 |
|
361 | |||
362 | processed revlogs: |
|
362 | processed revlogs: | |
363 | - all-filelogs |
|
363 | - all-filelogs | |
@@ -368,15 +368,15 b' Upgrade' | |||||
368 |
|
368 | |||
369 | $ hg debugrequirements |
|
369 | $ hg debugrequirements | |
370 | dotencode |
|
370 | dotencode | |
371 | exp-sharesafe |
|
|||
372 | fncache |
|
371 | fncache | |
373 | generaldelta |
|
372 | generaldelta | |
374 | revlogv1 |
|
373 | revlogv1 | |
|
374 | share-safe | |||
375 | sparserevlog |
|
375 | sparserevlog | |
376 | store |
|
376 | store | |
377 |
|
377 | |||
378 | $ cat .hg/requires |
|
378 | $ cat .hg/requires | |
379 |
e |
|
379 | share-safe | |
380 |
|
380 | |||
381 | $ cat .hg/store/requires |
|
381 | $ cat .hg/store/requires | |
382 | dotencode |
|
382 | dotencode | |
@@ -419,13 +419,13 b' Test that downgrading works too' | |||||
419 | > [extensions] |
|
419 | > [extensions] | |
420 | > share = |
|
420 | > share = | |
421 | > [format] |
|
421 | > [format] | |
422 |
> e |
|
422 | > use-share-safe = False | |
423 | > EOF |
|
423 | > EOF | |
424 |
|
424 | |||
425 | $ hg debugupgraderepo -q |
|
425 | $ hg debugupgraderepo -q | |
426 | requirements |
|
426 | requirements | |
427 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
427 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
428 |
removed: e |
|
428 | removed: share-safe | |
429 |
|
429 | |||
430 | processed revlogs: |
|
430 | processed revlogs: | |
431 | - all-filelogs |
|
431 | - all-filelogs | |
@@ -437,7 +437,7 b' Test that downgrading works too' | |||||
437 |
|
437 | |||
438 | requirements |
|
438 | requirements | |
439 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
439 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
440 |
removed: e |
|
440 | removed: share-safe | |
441 |
|
441 | |||
442 | processed revlogs: |
|
442 | processed revlogs: | |
443 | - all-filelogs |
|
443 | - all-filelogs | |
@@ -507,12 +507,12 b' Testing automatic downgrade of shares wh' | |||||
507 |
|
507 | |||
508 | Testing automatic upgrade of shares when config is set |
|
508 | Testing automatic upgrade of shares when config is set | |
509 |
|
509 | |||
510 |
$ hg debugupgraderepo -q --run --config format.e |
|
510 | $ hg debugupgraderepo -q --run --config format.use-share-safe=True | |
511 | upgrade will perform the following actions: |
|
511 | upgrade will perform the following actions: | |
512 |
|
512 | |||
513 | requirements |
|
513 | requirements | |
514 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
514 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
515 |
added: e |
|
515 | added: share-safe | |
516 |
|
516 | |||
517 | processed revlogs: |
|
517 | processed revlogs: | |
518 | - all-filelogs |
|
518 | - all-filelogs | |
@@ -522,10 +522,10 b' Testing automatic upgrade of shares when' | |||||
522 | 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. |
|
522 | 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. | |
523 | $ hg debugrequirements |
|
523 | $ hg debugrequirements | |
524 | dotencode |
|
524 | dotencode | |
525 | exp-sharesafe |
|
|||
526 | fncache |
|
525 | fncache | |
527 | generaldelta |
|
526 | generaldelta | |
528 | revlogv1 |
|
527 | revlogv1 | |
|
528 | share-safe | |||
529 | sparserevlog |
|
529 | sparserevlog | |
530 | store |
|
530 | store | |
531 | $ hg log -GT "{node}: {desc}\n" -R ../nss-share |
|
531 | $ hg log -GT "{node}: {desc}\n" -R ../nss-share |
@@ -2,7 +2,7 b'' | |||||
2 |
|
2 | |||
3 | #if safe |
|
3 | #if safe | |
4 | $ echo "[format]" >> $HGRCPATH |
|
4 | $ echo "[format]" >> $HGRCPATH | |
5 |
$ echo "e |
|
5 | $ echo "use-share-safe = True" >> $HGRCPATH | |
6 | #endif |
|
6 | #endif | |
7 |
|
7 | |||
8 | $ echo "[extensions]" >> $HGRCPATH |
|
8 | $ echo "[extensions]" >> $HGRCPATH | |
@@ -281,7 +281,7 b' Explicitly kill daemons to let the test ' | |||||
281 | Test sharing a repository which was created with store requirement disable |
|
281 | Test sharing a repository which was created with store requirement disable | |
282 |
|
282 | |||
283 | $ hg init nostore --config format.usestore=false |
|
283 | $ hg init nostore --config format.usestore=false | |
284 |
ignoring enabled 'format.e |
|
284 | ignoring enabled 'format.use-share-safe' config because it is incompatible with disabled 'format.usestore' config (safe !) | |
285 | $ hg share nostore sharednostore |
|
285 | $ hg share nostore sharednostore | |
286 | abort: cannot create shared repository as source was created with 'format.usestore' config disabled |
|
286 | abort: cannot create shared repository as source was created with 'format.usestore' config disabled | |
287 | [255] |
|
287 | [255] |
@@ -54,7 +54,7 b' Check that we can upgrade to sidedata' | |||||
54 | fncache: yes yes yes |
|
54 | fncache: yes yes yes | |
55 | dotencode: yes yes yes |
|
55 | dotencode: yes yes yes | |
56 | generaldelta: yes yes yes |
|
56 | generaldelta: yes yes yes | |
57 |
e |
|
57 | share-safe: no no no | |
58 | sparserevlog: yes yes yes |
|
58 | sparserevlog: yes yes yes | |
59 | sidedata: no no no |
|
59 | sidedata: no no no | |
60 | persistent-nodemap: no no no |
|
60 | persistent-nodemap: no no no | |
@@ -67,7 +67,7 b' Check that we can upgrade to sidedata' | |||||
67 | fncache: yes yes yes |
|
67 | fncache: yes yes yes | |
68 | dotencode: yes yes yes |
|
68 | dotencode: yes yes yes | |
69 | generaldelta: yes yes yes |
|
69 | generaldelta: yes yes yes | |
70 |
e |
|
70 | share-safe: no no no | |
71 | sparserevlog: yes yes yes |
|
71 | sparserevlog: yes yes yes | |
72 | sidedata: no yes no |
|
72 | sidedata: no yes no | |
73 | persistent-nodemap: no no no |
|
73 | persistent-nodemap: no no no | |
@@ -86,7 +86,7 b' Check that we can downgrade from sidedat' | |||||
86 | fncache: yes yes yes |
|
86 | fncache: yes yes yes | |
87 | dotencode: yes yes yes |
|
87 | dotencode: yes yes yes | |
88 | generaldelta: yes yes yes |
|
88 | generaldelta: yes yes yes | |
89 |
e |
|
89 | share-safe: no no no | |
90 | sparserevlog: yes yes yes |
|
90 | sparserevlog: yes yes yes | |
91 | sidedata: yes no no |
|
91 | sidedata: yes no no | |
92 | persistent-nodemap: no no no |
|
92 | persistent-nodemap: no no no | |
@@ -99,7 +99,7 b' Check that we can downgrade from sidedat' | |||||
99 | fncache: yes yes yes |
|
99 | fncache: yes yes yes | |
100 | dotencode: yes yes yes |
|
100 | dotencode: yes yes yes | |
101 | generaldelta: yes yes yes |
|
101 | generaldelta: yes yes yes | |
102 |
e |
|
102 | share-safe: no no no | |
103 | sparserevlog: yes yes yes |
|
103 | sparserevlog: yes yes yes | |
104 | sidedata: yes no no |
|
104 | sidedata: yes no no | |
105 | persistent-nodemap: no no no |
|
105 | persistent-nodemap: no no no |
@@ -56,7 +56,7 b' An upgrade of a repository created with ' | |||||
56 | fncache: yes |
|
56 | fncache: yes | |
57 | dotencode: yes |
|
57 | dotencode: yes | |
58 | generaldelta: yes |
|
58 | generaldelta: yes | |
59 |
e |
|
59 | share-safe: no | |
60 | sparserevlog: yes |
|
60 | sparserevlog: yes | |
61 | sidedata: no |
|
61 | sidedata: no | |
62 | persistent-nodemap: no |
|
62 | persistent-nodemap: no | |
@@ -69,7 +69,7 b' An upgrade of a repository created with ' | |||||
69 | fncache: yes yes yes |
|
69 | fncache: yes yes yes | |
70 | dotencode: yes yes yes |
|
70 | dotencode: yes yes yes | |
71 | generaldelta: yes yes yes |
|
71 | generaldelta: yes yes yes | |
72 |
e |
|
72 | share-safe: no no no | |
73 | sparserevlog: yes yes yes |
|
73 | sparserevlog: yes yes yes | |
74 | sidedata: no no no |
|
74 | sidedata: no no no | |
75 | persistent-nodemap: no no no |
|
75 | persistent-nodemap: no no no | |
@@ -82,7 +82,7 b' An upgrade of a repository created with ' | |||||
82 | fncache: yes no yes |
|
82 | fncache: yes no yes | |
83 | dotencode: yes no yes |
|
83 | dotencode: yes no yes | |
84 | generaldelta: yes yes yes |
|
84 | generaldelta: yes yes yes | |
85 |
e |
|
85 | share-safe: no no no | |
86 | sparserevlog: yes yes yes |
|
86 | sparserevlog: yes yes yes | |
87 | sidedata: no no no |
|
87 | sidedata: no no no | |
88 | persistent-nodemap: no no no |
|
88 | persistent-nodemap: no no no | |
@@ -95,7 +95,7 b' An upgrade of a repository created with ' | |||||
95 | [formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| yes][formatvariant.config.special| no][formatvariant.default| yes] |
|
95 | [formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| yes][formatvariant.config.special| no][formatvariant.default| yes] | |
96 | [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| yes][formatvariant.config.special| no][formatvariant.default| yes] |
|
96 | [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| yes][formatvariant.config.special| no][formatvariant.default| yes] | |
97 | [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] |
|
97 | [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] | |
98 |
[formatvariant.name.uptodate|e |
|
98 | [formatvariant.name.uptodate|share-safe: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
99 | [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] |
|
99 | [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] | |
100 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
100 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
101 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
101 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
@@ -126,7 +126,7 b' An upgrade of a repository created with ' | |||||
126 | { |
|
126 | { | |
127 | "config": false, |
|
127 | "config": false, | |
128 | "default": false, |
|
128 | "default": false, | |
129 |
"name": " |
|
129 | "name": "share-safe", | |
130 | "repo": false |
|
130 | "repo": false | |
131 | }, |
|
131 | }, | |
132 | { |
|
132 | { | |
@@ -301,7 +301,7 b' Various sub-optimal detections work' | |||||
301 | fncache: no |
|
301 | fncache: no | |
302 | dotencode: no |
|
302 | dotencode: no | |
303 | generaldelta: no |
|
303 | generaldelta: no | |
304 |
e |
|
304 | share-safe: no | |
305 | sparserevlog: no |
|
305 | sparserevlog: no | |
306 | sidedata: no |
|
306 | sidedata: no | |
307 | persistent-nodemap: no |
|
307 | persistent-nodemap: no | |
@@ -314,7 +314,7 b' Various sub-optimal detections work' | |||||
314 | fncache: no yes yes |
|
314 | fncache: no yes yes | |
315 | dotencode: no yes yes |
|
315 | dotencode: no yes yes | |
316 | generaldelta: no yes yes |
|
316 | generaldelta: no yes yes | |
317 |
e |
|
317 | share-safe: no no no | |
318 | sparserevlog: no yes yes |
|
318 | sparserevlog: no yes yes | |
319 | sidedata: no no no |
|
319 | sidedata: no no no | |
320 | persistent-nodemap: no no no |
|
320 | persistent-nodemap: no no no | |
@@ -327,7 +327,7 b' Various sub-optimal detections work' | |||||
327 | fncache: no yes yes |
|
327 | fncache: no yes yes | |
328 | dotencode: no yes yes |
|
328 | dotencode: no yes yes | |
329 | generaldelta: no no yes |
|
329 | generaldelta: no no yes | |
330 |
e |
|
330 | share-safe: no no no | |
331 | sparserevlog: no no yes |
|
331 | sparserevlog: no no yes | |
332 | sidedata: no no no |
|
332 | sidedata: no no no | |
333 | persistent-nodemap: no no no |
|
333 | persistent-nodemap: no no no | |
@@ -340,7 +340,7 b' Various sub-optimal detections work' | |||||
340 | [formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes] |
|
340 | [formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes] | |
341 | [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes] |
|
341 | [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes] | |
342 | [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] |
|
342 | [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] | |
343 |
[formatvariant.name.uptodate|e |
|
343 | [formatvariant.name.uptodate|share-safe: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
344 | [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] |
|
344 | [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] | |
345 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
345 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
346 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
346 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
@@ -1297,7 +1297,7 b' upgrade' | |||||
1297 | fncache: yes yes yes |
|
1297 | fncache: yes yes yes | |
1298 | dotencode: yes yes yes |
|
1298 | dotencode: yes yes yes | |
1299 | generaldelta: yes yes yes |
|
1299 | generaldelta: yes yes yes | |
1300 |
|
|
1300 | share-safe: no no no | |
1301 | sparserevlog: yes yes yes |
|
1301 | sparserevlog: yes yes yes | |
1302 | sidedata: no no no |
|
1302 | sidedata: no no no | |
1303 | persistent-nodemap: no no no |
|
1303 | persistent-nodemap: no no no | |
@@ -1333,7 +1333,7 b' downgrade' | |||||
1333 | fncache: yes yes yes |
|
1333 | fncache: yes yes yes | |
1334 | dotencode: yes yes yes |
|
1334 | dotencode: yes yes yes | |
1335 | generaldelta: yes yes yes |
|
1335 | generaldelta: yes yes yes | |
1336 |
|
|
1336 | share-safe: no no no | |
1337 | sparserevlog: yes yes yes |
|
1337 | sparserevlog: yes yes yes | |
1338 | sidedata: no no no |
|
1338 | sidedata: no no no | |
1339 | persistent-nodemap: no no no |
|
1339 | persistent-nodemap: no no no | |
@@ -1372,7 +1372,7 b' upgrade from hgrc' | |||||
1372 | fncache: yes yes yes |
|
1372 | fncache: yes yes yes | |
1373 | dotencode: yes yes yes |
|
1373 | dotencode: yes yes yes | |
1374 | generaldelta: yes yes yes |
|
1374 | generaldelta: yes yes yes | |
1375 |
e |
|
1375 | share-safe: no no no | |
1376 | sparserevlog: yes yes yes |
|
1376 | sparserevlog: yes yes yes | |
1377 | sidedata: no no no |
|
1377 | sidedata: no no no | |
1378 | persistent-nodemap: no no no |
|
1378 | persistent-nodemap: no no no | |
@@ -1415,7 +1415,7 b' upgrade' | |||||
1415 | fncache: yes yes yes |
|
1415 | fncache: yes yes yes | |
1416 | dotencode: yes yes yes |
|
1416 | dotencode: yes yes yes | |
1417 | generaldelta: yes yes yes |
|
1417 | generaldelta: yes yes yes | |
1418 |
e |
|
1418 | share-safe: no no no | |
1419 | sparserevlog: yes yes yes |
|
1419 | sparserevlog: yes yes yes | |
1420 | sidedata: yes no no |
|
1420 | sidedata: yes no no | |
1421 | persistent-nodemap: no no no |
|
1421 | persistent-nodemap: no no no | |
@@ -1458,7 +1458,7 b' downgrade' | |||||
1458 | fncache: yes yes yes |
|
1458 | fncache: yes yes yes | |
1459 | dotencode: yes yes yes |
|
1459 | dotencode: yes yes yes | |
1460 | generaldelta: yes yes yes |
|
1460 | generaldelta: yes yes yes | |
1461 |
e |
|
1461 | share-safe: no no no | |
1462 | sparserevlog: yes yes yes |
|
1462 | sparserevlog: yes yes yes | |
1463 | sidedata: no no no |
|
1463 | sidedata: no no no | |
1464 | persistent-nodemap: no no no |
|
1464 | persistent-nodemap: no no no | |
@@ -1501,7 +1501,7 b' upgrade from hgrc' | |||||
1501 | fncache: yes yes yes |
|
1501 | fncache: yes yes yes | |
1502 | dotencode: yes yes yes |
|
1502 | dotencode: yes yes yes | |
1503 | generaldelta: yes yes yes |
|
1503 | generaldelta: yes yes yes | |
1504 |
e |
|
1504 | share-safe: no no no | |
1505 | sparserevlog: yes yes yes |
|
1505 | sparserevlog: yes yes yes | |
1506 | sidedata: yes yes no |
|
1506 | sidedata: yes yes no | |
1507 | persistent-nodemap: no no no |
|
1507 | persistent-nodemap: no no no |
General Comments 0
You need to be logged in to leave comments.
Login now