diff -r 5ff0fd023850 -r 4c96c50ef937 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Dec 16 12:59:32 2013 -0600 +++ b/mercurial/localrepo.py Wed Nov 13 15:55:30 2013 +0900 @@ -1382,7 +1382,7 @@ parent2=xp2, pending=p) self.changelog.finalize(trp) # set the new commit is proper phase - targetphase = phases.newcommitphase(self.ui) + targetphase = subrepo.newcommitphase(self.ui, ctx) if targetphase: # retract boundary do not alter parent changeset. # if a parent have higher the resulting phase will