hgext/split.py
changeset 38424 4f885770c4a2
parent 38069 5ba0cf22e4d0
child 40293 c303d65d2e34
equal deleted inserted replaced
38423:32fba6fe893d 38424:4f885770c4a2
   168 
   168 
   169     if not committed:
   169     if not committed:
   170         raise error.Abort(_('cannot split an empty revision'))
   170         raise error.Abort(_('cannot split an empty revision'))
   171 
   171 
   172     scmutil.cleanupnodes(repo, {ctx.node(): [c.node() for c in committed]},
   172     scmutil.cleanupnodes(repo, {ctx.node(): [c.node() for c in committed]},
   173                          operation='split')
   173                          operation='split', fixphase=True)
   174 
   174 
   175     return committed[-1]
   175     return committed[-1]
   176 
   176 
   177 def dorebase(ui, repo, src, destctx):
   177 def dorebase(ui, repo, src, destctx):
   178     rebase.rebase(ui, repo, rev=[revsetlang.formatspec('%ld', src)],
   178     rebase.rebase(ui, repo, rev=[revsetlang.formatspec('%ld', src)],