Show More
@@ -608,13 +608,11 b' def makelocalrepository(baseui, path, in' | |||||
608 | storevfs, |
|
608 | storevfs, | |
609 | requirements, |
|
609 | requirements, | |
610 | ) |
|
610 | ) | |
611 | elif ui.configbool( |
|
611 | else: | |
612 | b'experimental', b'sharesafe-warn-outdated-shares' |
|
612 | raise error.Abort( | |
613 | ): |
|
|||
614 | ui.warn( |
|
|||
615 | _( |
|
613 | _( | |
616 |
b' |
|
614 | b'version mismatch: source uses share-safe' | |
617 | b' Reshare to upgrade.\n' |
|
615 | b' functionality while the current share does not' | |
618 | ) |
|
616 | ) | |
619 | ) |
|
617 | ) | |
620 |
|
618 |
@@ -392,20 +392,11 b' Upgrade' | |||||
392 | o f3ba8b99bb6f897c87bbc1c07b75c6ddf43a4f77: added foo |
|
392 | o f3ba8b99bb6f897c87bbc1c07b75c6ddf43a4f77: added foo | |
393 |
|
393 | |||
394 |
|
394 | |||
395 |
Make sure existing shares |
|
395 | Make sure existing shares dont work with default config | |
396 |
|
||||
397 | $ hg log -GT "{node}: {desc}\n" -R ../nss-share --config experimental.sharesafe-warn-outdated-shares=false |
|
|||
398 | @ f63db81e6dde1d9c78814167f77fb1fb49283f4f: added bar |
|
|||
399 | | |
|
|||
400 | o f3ba8b99bb6f897c87bbc1c07b75c6ddf43a4f77: added foo |
|
|||
401 |
|
||||
402 |
|
396 | |||
403 | $ hg log -GT "{node}: {desc}\n" -R ../nss-share |
|
397 | $ hg log -GT "{node}: {desc}\n" -R ../nss-share | |
404 | warning: source repository supports share-safe functionality. Reshare to upgrade. |
|
398 | abort: version mismatch: source uses share-safe functionality while the current share does not | |
405 | @ f63db81e6dde1d9c78814167f77fb1fb49283f4f: added bar |
|
399 | [255] | |
406 | | |
|
|||
407 | o f3ba8b99bb6f897c87bbc1c07b75c6ddf43a4f77: added foo |
|
|||
408 |
|
||||
409 |
|
400 | |||
410 |
|
401 | |||
411 | Create a safe share from upgrade one |
|
402 | Create a safe share from upgrade one | |
@@ -538,11 +529,8 b' Testing automatic upgrade of shares when' | |||||
538 | sparserevlog |
|
529 | sparserevlog | |
539 | store |
|
530 | store | |
540 | $ hg log -GT "{node}: {desc}\n" -R ../nss-share |
|
531 | $ hg log -GT "{node}: {desc}\n" -R ../nss-share | |
541 | warning: source repository supports share-safe functionality. Reshare to upgrade. |
|
532 | abort: version mismatch: source uses share-safe functionality while the current share does not | |
542 | @ f63db81e6dde1d9c78814167f77fb1fb49283f4f: added bar |
|
533 | [255] | |
543 | | |
|
|||
544 | o f3ba8b99bb6f897c87bbc1c07b75c6ddf43a4f77: added foo |
|
|||
545 |
|
||||
546 |
|
534 | |||
547 | Check that if lock is taken, upgrade fails but read operation are successful |
|
535 | Check that if lock is taken, upgrade fails but read operation are successful | |
548 | $ touch ../nss-share/.hg/wlock |
|
536 | $ touch ../nss-share/.hg/wlock |
General Comments 0
You need to be logged in to leave comments.
Login now