##// END OF EJS Templates
phases: add killswitch for native implementation
Laurent Charignon -
r24520:34e8bfc2 default
parent child Browse files
Show More
@@ -195,7 +195,11 b' class phasecache(object):'
195 195 def getphaserevs(self, repo):
196 196 if self._phaserevs is None:
197 197 try:
198 self._phaserevs = self.getphaserevsnative(repo)
198 if repo.ui.configbool('experimental',
199 'nativephaseskillswitch'):
200 self.computephaserevspure(repo)
201 else:
202 self._phaserevs = self.getphaserevsnative(repo)
199 203 except AttributeError:
200 204 self.computephaserevspure(repo)
201 205 return self._phaserevs
@@ -456,8 +456,12 b' move changeset backward'
456 456 o 0 public A
457 457
458 458
459 move changeset forward and backward
459 move changeset forward and backward and test kill switch
460 460
461 $ cat <<EOF >> $HGRCPATH
462 > [experimental]
463 > nativephaseskillswitch = true
464 > EOF
461 465 $ hg phase --draft --force 1::4
462 466 $ hg log -G --template "{rev} {phase} {desc}\n"
463 467 @ 7 secret merge B' and E
@@ -478,6 +482,10 b' move changeset forward and backward'
478 482
479 483 test partial failure
480 484
485 $ cat <<EOF >> $HGRCPATH
486 > [experimental]
487 > nativephaseskillswitch = false
488 > EOF
481 489 $ hg phase --public 7
482 490 $ hg phase --draft '5 or 7'
483 491 cannot move 1 changesets to a higher phase, use --force
General Comments 0
You need to be logged in to leave comments. Login now