# HG changeset patch # User Jun Wu # Date 1488412201 28800 # Node ID b7cef987356dd49dfd92f250095bd444890f7e96 # Parent 6d9f8bc2b5eaf7332a0888aa29f63305104f40bf phases: remove experimental.nativephaseskillswitch The native code has been used for a long time. Therefore drop the experimental config option. diff -r 6d9f8bc2b5ea -r b7cef987356d mercurial/phases.py --- a/mercurial/phases.py Wed Mar 01 16:35:57 2017 -0800 +++ b/mercurial/phases.py Wed Mar 01 15:50:01 2017 -0800 @@ -224,12 +224,8 @@ """ensure phase information is loaded in the object""" if self._phaserevs is None: try: - if repo.ui.configbool('experimental', - 'nativephaseskillswitch'): - self._computephaserevspure(repo) - else: - res = self._getphaserevsnative(repo) - self._phaserevs, self._phasesets = res + res = self._getphaserevsnative(repo) + self._phaserevs, self._phasesets = res except AttributeError: self._computephaserevspure(repo) diff -r 6d9f8bc2b5ea -r b7cef987356d tests/test-phases.t --- a/tests/test-phases.t Wed Mar 01 16:35:57 2017 -0800 +++ b/tests/test-phases.t Wed Mar 01 15:50:01 2017 -0800 @@ -479,12 +479,8 @@ o 0 public A -move changeset forward and backward and test kill switch +move changeset forward and backward - $ cat <> $HGRCPATH - > [experimental] - > nativephaseskillswitch = true - > EOF $ hg phase --draft --force 1::4 $ hg log -G --template "{rev} {phase} {desc}\n" @ 7 secret merge B' and E @@ -505,10 +501,6 @@ test partial failure - $ cat <> $HGRCPATH - > [experimental] - > nativephaseskillswitch = false - > EOF $ hg phase --public 7 $ hg phase --draft '5 or 7' cannot move 1 changesets to a higher phase, use --force