hgext/transplant.py
changeset 42530 dc3fdd1b5af4
parent 42529 5f2f6912c9e6
child 42532 12243f15d53e
--- a/hgext/transplant.py	Sat Jun 08 23:43:53 2019 +0530
+++ b/hgext/transplant.py	Sun Jun 09 00:43:36 2019 +0530
@@ -758,9 +758,10 @@
     return n and nodemod.hex(n) or ''
 
 def extsetup(ui):
-    statemod.unfinishedstates.append(
-        ['transplant/journal', True, False, _('transplant in progress'),
-         _("use 'hg transplant --continue' or 'hg update' to abort")])
+    statemod.addunfinished (
+        'transplant', fname='transplant/journal', clearable=True,
+        cmdhint=_("use 'hg transplant --continue' or 'hg update' to abort")
+    )
 
 # tell hggettext to extract docstrings from these functions:
 i18nfunctions = [revsettransplanted, kwtransplanted]