# HG changeset patch # User Pierre-Yves David # Date 2012-12-24 11:00:08 # Node ID 48deb483a8f83ee1cddf710ac95e14a220abdf31 # Parent 9454e40e047ba8bf42b3c59030a345656f995875 clfilter: drop unnecessary explicit filtering on histedit Hidden changeset filtering is now done at repo level. The orphaned children computation will not include any (unless you add --hidden). diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -594,7 +594,7 @@ def between(repo, old, new, keep): ctxs = list(repo.set('%n::%n', old, new)) if ctxs and not keep: if (not obsolete._enabled and - repo.revs('(%ld::) - (%ld + hidden())', ctxs, ctxs)): + repo.revs('(%ld::) - (%ld)', ctxs, ctxs)): raise util.Abort(_('cannot edit history that would orphan nodes')) root = ctxs[0] # list is already sorted by repo.set if not root.phase():