clfilter: drop unnecessary explicit filtering on rebase
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 04 Dec 2012 14:58:19 +0100
changeset 18269 9454e40e047b
parent 18268 ed25fe3a7e2f
child 18270 48deb483a8f8
clfilter: drop unnecessary explicit filtering on rebase Hidden changeset filtering is now done at repo level. The rebaseset computation will not include any (unless you add --hidden).
hgext/rebase.py
--- a/hgext/rebase.py	Tue Jan 08 20:02:53 2013 +0100
+++ b/hgext/rebase.py	Tue Dec 04 14:58:19 2012 +0100
@@ -184,8 +184,6 @@
                 rebaseset = repo.revs(
                     '(children(ancestor(%ld, %d)) and ::(%ld))::',
                     base, dest, base)
-            # temporary top level filtering of extinct revisions
-            rebaseset = repo.revs('%ld - hidden()', rebaseset)
             if rebaseset:
                 root = min(rebaseset)
             else:
@@ -195,7 +193,7 @@
                 repo.ui.debug('base is ancestor of destination\n')
                 result = None
             elif (not (keepf or obsolete._enabled)
-                  and repo.revs('first(children(%ld) - %ld)-hidden()',
+                  and repo.revs('first(children(%ld) - %ld)',
                                 rebaseset, rebaseset)):
                 raise util.Abort(
                     _("can't remove original changesets with"