hgext3rd/evolve/evolvecmd.py
changeset 4270 c8f96f4cb600
parent 4258 697ec7c2f325
parent 4269 d2599da04bb5
child 4301 5cbaf5d25443
--- a/hgext3rd/evolve/evolvecmd.py	Mon Nov 26 16:43:39 2018 +0300
+++ b/hgext3rd/evolve/evolvecmd.py	Tue Nov 27 03:56:27 2018 +0100
@@ -769,17 +769,18 @@
     returns the node of new commit which is formed
     """
     if orig.rev() == dest.rev():
-        raise error.Abort(_('tried to relocate a node on top of itself'),
-                          hint=_("This shouldn't happen. If you still "
-                                 "need to move changesets, please do so "
-                                 "manually with nothing to rebase - working "
-                                 "directory parent is also destination"))
+        msg = _('tried to relocate a node on top of itself')
+        hint = _("This shouldn't happen. If you still need to move changesets, "
+                 "please do so manually with nothing to rebase - working "
+                 "directory parent is also destination")
+        raise error.ProgrammingError(msg, hint=hint)
 
     if pctx is None:
         if len(orig.parents()) == 2:
-            raise error.Abort(_("tried to relocate a merge commit without "
-                                "specifying which parent should be moved"),
-                              hint=_("Specify the parent by passing in pctx"))
+            msg = _("tried to relocate a merge commit without specifying which "
+                    "parent should be moved")
+            hint = _("Specify the parent by passing in pctx")
+            raise error.ProgrammingError(msg, hint)
         pctx = orig.p1()
 
     commitmsg = orig.description()
@@ -1440,7 +1441,7 @@
          interrupted evolve
 
       - `hg evolve --stop`:
-         stops the current interrupted evolve,. keeping all the successful steps,
+         stops the current interrupted evolve, keeping all the successful steps,
          but delaying to resolution of the remaining step for later.
 
       - `hg evolve --abort`: