diff mercurial/dispatch.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 720308f741cb
children 4d1671b39168
line wrap: on
line diff
--- a/mercurial/dispatch.py	Tue Jan 08 21:16:39 2013 +0100
+++ b/mercurial/dispatch.py	Tue Jan 08 20:37:37 2013 +0100
@@ -710,6 +710,10 @@
                 repo = hg.repository(ui, path=path)
                 if not repo.local():
                     raise util.Abort(_("repository '%s' is not local") % path)
+                if not options['hidden']:
+                    repo = repo.filtered('hidden')
+                else:
+                    repo = repo.unfiltered()
                 repo.ui.setconfig("bundle", "mainreporoot", repo.root)
             except error.RequirementError:
                 raise