Mercurial > hg-stable
comparison tests/test-clone.t @ 47908:b1e1559f5a45
obsolete: disable other evolution config options if createmarkers is off
We used to raise an abort in this case, but recent changes to local clone
command (377d8fc20e34) resulted in destrepo both caring about
experimental.evolution config options and not initializing extensions.
So imagine if you had evolve and allowdivergence enabled in your ~/.hgrc. Local
clone stopped working after 377d8fc20e34 because evolve sets
experimental.evolution=all, but only on srcrepo, for destrepo the extension is
not initialized. It's possible to make local cloning work by initializing
extensions for destrepo in some cases, but in other cases (e.g. allowdivergence
in ~/.hgrc, evolve extension in original-repo/.hg/hgrc) it would still fail.
In a discussion with Pierre-Yves David it was decided to simply force other
evolution options to be false if createmarkers is not enabled.
Differential Revision: https://phab.mercurial-scm.org/D11223
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 28 Jul 2021 13:45:07 +0300 |
parents | 377d8fc20e34 |
children | 9c4204b7f3e4 |
comparison
equal
deleted
inserted
replaced
47907:82c87566bfc0 | 47908:b1e1559f5a45 |
---|---|
578 new changesets acb14030fe0a:0aae7cf88f0d | 578 new changesets acb14030fe0a:0aae7cf88f0d |
579 updating to branch stable | 579 updating to branch stable |
580 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | 580 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
581 $ rm -r ua | 581 $ rm -r ua |
582 | 582 |
583 Local clones don't get confused by unusual experimental.evolution options | |
584 | |
585 $ hg clone \ | |
586 > --config experimental.evolution=allowunstable,allowdivergence,exchange \ | |
587 > a ua | |
588 updating to branch default | |
589 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
590 $ rm -r ua | |
591 | |
592 $ hg clone \ | |
593 > --config experimental.evolution.createmarkers=no \ | |
594 > --config experimental.evolution.allowunstable=yes \ | |
595 > --config experimental.evolution.allowdivergence=yes \ | |
596 > --config experimental.evolution.exchange=yes \ | |
597 > a ua | |
598 updating to branch default | |
599 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
600 $ rm -r ua | |
583 | 601 |
584 Test clone with special '@' bookmark: | 602 Test clone with special '@' bookmark: |
585 $ cd a | 603 $ cd a |
586 $ hg bookmark -r a7949464abda @ # branch point of stable from default | 604 $ hg bookmark -r a7949464abda @ # branch point of stable from default |
587 $ hg clone . ../i | 605 $ hg clone . ../i |