mercurial/localrepo.py
changeset 15646 218ec96c45d7
parent 15611 ec8a49c46d7e
child 15650 5b26667fc4d3
--- a/mercurial/localrepo.py	Mon Dec 12 11:54:22 2011 -0600
+++ b/mercurial/localrepo.py	Thu Dec 15 11:57:33 2011 +0100
@@ -1992,8 +1992,12 @@
                           url=url, pending=p)
 
             added = [cl.node(r) for r in xrange(clstart, clend)]
-            if srctype != 'strip':
-                phases.advanceboundary(self, 0, added)
+            if self.ui.configbool('phases', 'publish', True):
+                if srctype != 'strip':
+                    phases.advanceboundary(self, 0, added)
+            else:
+                phases.retractboundary(self, 1, added)
+
             # make changelog see real files again
             cl.finalize(trp)