hgext/rebase.py
changeset 19925 9c78ed396075
parent 19861 a69a77a80900
child 19926 0f99747202f9
equal deleted inserted replaced
19924:c23c62209cc4 19925:9c78ed396075
   356                 if v > nullmerge:
   356                 if v > nullmerge:
   357                     nstate[repo[k].node()] = repo[v].node()
   357                     nstate[repo[k].node()] = repo[v].node()
   358             # XXX this is the same as dest.node() for the non-continue path --
   358             # XXX this is the same as dest.node() for the non-continue path --
   359             # this should probably be cleaned up
   359             # this should probably be cleaned up
   360             targetnode = repo[target].node()
   360             targetnode = repo[target].node()
       
   361 
       
   362         # restore original working directory
       
   363         # (we do this before stripping)
       
   364         newwd = state.get(originalwd, originalwd)
       
   365         if newwd not in [c.rev() for c in repo[None].parents()]:
       
   366             ui.note(_("update back to initial working directory parent\n"))
       
   367             hg.updaterepo(repo, newwd, False)
   361 
   368 
   362         if not keepf:
   369         if not keepf:
   363             collapsedas = None
   370             collapsedas = None
   364             if collapsef:
   371             if collapsef:
   365                 collapsedas = newrev
   372                 collapsedas = newrev