--- a/hgext/histedit.py Wed Jul 24 13:20:44 2013 +0800
+++ b/hgext/histedit.py Wed Jul 24 17:39:29 2013 -0400
@@ -679,6 +679,8 @@
if (not obsolete._enabled and
repo.revs('(%ld::) - (%ld)', ctxs, ctxs)):
raise util.Abort(_('cannot edit history that would orphan nodes'))
+ if repo.revs('(%ld) and merge()', ctxs):
+ raise util.Abort(_('cannot edit history that contains merges'))
root = ctxs[0] # list is already sorted by repo.set
if not root.phase():
raise util.Abort(_('cannot edit immutable changeset: %s') % root)