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