Mercurial > evolve
comparison hgext/obsolete.py @ 115:d60eddda9546
add an option to ensure unstable are secret
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Thu, 22 Dec 2011 15:26:42 +0100 |
parents | 1a64195e2b09 |
children | ba45bb2d35cb |
comparison
equal
deleted
inserted
replaced
114:1a64195e2b09 | 115:d60eddda9546 |
---|---|
90 from mercurial import pushkey | 90 from mercurial import pushkey |
91 from mercurial import discovery | 91 from mercurial import discovery |
92 from mercurial import error | 92 from mercurial import error |
93 from mercurial import commands | 93 from mercurial import commands |
94 from mercurial import changelog | 94 from mercurial import changelog |
95 from mercurial import phases | |
95 from mercurial.node import hex, bin, short, nullid | 96 from mercurial.node import hex, bin, short, nullid |
96 from mercurial.lock import release | 97 from mercurial.lock import release |
97 | 98 |
98 ### Patch changectx | 99 ### Patch changectx |
99 ############################# | 100 ############################# |
493 | 494 |
494 | 495 |
495 | 496 |
496 | 497 |
497 repo.__class__ = obsoletingrepo | 498 repo.__class__ = obsoletingrepo |
498 | 499 obsoletes = [c.node() for c in repo.set('obsolete() - public()')] |
500 lock = repo.lock() | |
501 if repo.ui.configbool('obsolete', 'secret-unstable', True): | |
502 try: | |
503 phases.retractboundary(repo, 2, obsoletes) | |
504 finally: | |
505 lock.release() | |
506 | |
507 |