mercurial/localrepo.py
branchstable
changeset 16030 308406677e9d
parent 16023 90f8b8dd0326
child 16073 b254f827b7a6
child 16113 3f75fb837638
--- a/mercurial/localrepo.py	Mon Jan 30 15:17:08 2012 +0100
+++ b/mercurial/localrepo.py	Mon Jan 30 17:46:15 2012 +0100
@@ -1268,8 +1268,7 @@
                       parent2=xp2, pending=p)
             self.changelog.finalize(trp)
             # set the new commit is proper phase
-            targetphase = self.ui.configint('phases', 'new-commit',
-                                            phases.draft)
+            targetphase = phases.newcommitphase(self.ui)
             if targetphase:
                 # retract boundary do not alter parent changeset.
                 # if a parent have higher the resulting phase will