hgext/histedit.py
changeset 33783 c26a76e1af36
parent 33486 af402f11cb9d
child 34046 6e6452bc441d
--- a/hgext/histedit.py	Mon Jul 31 23:13:47 2017 +0900
+++ b/hgext/histedit.py	Fri Aug 11 15:20:41 2017 +0200
@@ -1417,6 +1417,11 @@
     expected = set(c.node() for c in ctxs)
     seen = set()
     prev = None
+
+    if actions and actions[0].verb in ['roll', 'fold']:
+        raise error.ParseError(_('first changeset cannot use verb "%s"') %
+                               actions[0].verb)
+
     for action in actions:
         action.verify(prev, expected, seen)
         prev = action