diff mercurial/cmdutil.py @ 18267:5bb610f87d1d

clfilter: enforce hidden changeset globally The dispatch code now enables filtering of "hidden" changesets globally. The filter is installed before command and extension invocation. The `--hidden` switch is now global and disables this filtering for any command. Code in log dedicated to changeset exclusion is removed as this global filtering has the same effect.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 08 Jan 2013 20:37:37 +0100
parents b3b1b8e127e5
children 8802277c40ee
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Jan 08 21:16:39 2013 +0100
+++ b/mercurial/cmdutil.py	Tue Jan 08 20:37:37 2013 +0100
@@ -1406,8 +1406,6 @@
     # depends on revisions resolved from --rev...
     follow = opts.get('follow') or opts.get('follow_first')
     possiblyunsorted = False # whether revs might need sorting
-    if not opts.get('hidden'):
-        repo = repo.filtered('hidden')
     if opts.get('rev'):
         revs = scmutil.revrange(repo, opts['rev'])
         # Don't sort here because _makegraphlogrevset might depend on the