Mercurial > hg
diff tests/test-clone.t @ 47795: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 |
line wrap: on
line diff
--- a/tests/test-clone.t Wed Jul 28 13:47:21 2021 +0300 +++ b/tests/test-clone.t Wed Jul 28 13:45:07 2021 +0300 @@ -580,6 +580,24 @@ 3 files updated, 0 files merged, 0 files removed, 0 files unresolved $ rm -r ua +Local clones don't get confused by unusual experimental.evolution options + + $ hg clone \ + > --config experimental.evolution=allowunstable,allowdivergence,exchange \ + > a ua + updating to branch default + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ rm -r ua + + $ hg clone \ + > --config experimental.evolution.createmarkers=no \ + > --config experimental.evolution.allowunstable=yes \ + > --config experimental.evolution.allowdivergence=yes \ + > --config experimental.evolution.exchange=yes \ + > a ua + updating to branch default + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ rm -r ua Test clone with special '@' bookmark: $ cd a