--- a/hgext/transplant.py Fri Aug 09 05:09:54 2019 -0400
+++ b/hgext/transplant.py Wed Jul 24 18:32:36 2019 +0530
@@ -734,6 +734,13 @@
if cleanupfn:
cleanupfn()
+def continuecmd(ui, repo):
+ """logic to resume an interrupted transplant using
+ 'hg continue'"""
+ with repo.wlock():
+ tp = transplanter(ui, repo, {})
+ return tp.resume(repo, repo, {})
+
revsetpredicate = registrar.revsetpredicate()
@revsetpredicate('transplanted([set])')
@@ -760,6 +767,7 @@
def extsetup(ui):
statemod.addunfinished (
'transplant', fname='transplant/journal', clearable=True,
+ continuefunc=continuecmd,
statushint=_('To continue: hg transplant --continue\n'
'To abort: hg update'),
cmdhint=_("use 'hg transplant --continue' or 'hg update' to abort")