diff -r f5fc54e7e467 -r c26a76e1af36 hgext/histedit.py --- 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