mercurial/commands.py
changeset 45556 03726f5b6092
parent 45544 2b339c6c6e99
child 45565 c1d0f83d62c4
equal deleted inserted replaced
45555:feffeb18d412 45556:03726f5b6092
  3245 def _stopgraft(ui, repo, graftstate):
  3245 def _stopgraft(ui, repo, graftstate):
  3246     """stop the interrupted graft"""
  3246     """stop the interrupted graft"""
  3247     if not graftstate.exists():
  3247     if not graftstate.exists():
  3248         raise error.Abort(_(b"no interrupted graft found"))
  3248         raise error.Abort(_(b"no interrupted graft found"))
  3249     pctx = repo[b'.']
  3249     pctx = repo[b'.']
  3250     hg.updaterepo(repo, pctx.node(), overwrite=True)
  3250     mergemod.clean_update(pctx)
  3251     graftstate.delete()
  3251     graftstate.delete()
  3252     ui.status(_(b"stopped the interrupted graft\n"))
  3252     ui.status(_(b"stopped the interrupted graft\n"))
  3253     ui.status(_(b"working directory is now at %s\n") % pctx.hex()[:12])
  3253     ui.status(_(b"working directory is now at %s\n") % pctx.hex()[:12])
  3254     return 0
  3254     return 0
  3255 
  3255