equal
deleted
inserted
replaced
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 |