hgext/histedit.py
branchstable
changeset 19479 11664641fbad
parent 19473 10a0ae668fe6
child 19496 607191a45f8c
--- a/hgext/histedit.py	Wed Jul 24 23:51:44 2013 -0500
+++ b/hgext/histedit.py	Wed Jul 24 23:51:44 2013 -0500
@@ -512,6 +512,7 @@
         os.unlink(os.path.join(repo.path, 'histedit-state'))
         return
     else:
+        cmdutil.checkunfinished(repo)
         cmdutil.bailifchanged(repo)
 
         topmost, empty = repo.dirstate.parents()
@@ -872,3 +873,6 @@
 
 def extsetup(ui):
     cmdutil.summaryhooks.add('histedit', summaryhook)
+    cmdutil.unfinishedstates.append(
+        ['histedit-state', False, _('histedit in progress'),
+         _("use 'hg histedit --continue' or 'hg histedit --abort'")])