changeset 18608 | 3adbd57e1794 |
parent 18507 | c795c9f87792 |
child 18609 | 909cb9ddba4a |
--- a/hgext/histedit.py Sat Feb 09 15:59:44 2013 +0000 +++ b/hgext/histedit.py Sat Aug 03 16:37:17 2013 +0200 @@ -498,8 +498,8 @@ keep = opts.get('keep', False) revs = between(repo, parent, topmost, keep) if not revs: - ui.warn(_('nothing to edit\n')) - return 1 + raise util.Abort(_('%s is not an ancestor of working directory') % + node.short(parent)) ctxs = [repo[r] for r in revs] rules = opts.get('commands', '')