Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
18266:09a2b6741695 | 18267:5bb610f87d1d |
---|---|
708 else: | 708 else: |
709 try: | 709 try: |
710 repo = hg.repository(ui, path=path) | 710 repo = hg.repository(ui, path=path) |
711 if not repo.local(): | 711 if not repo.local(): |
712 raise util.Abort(_("repository '%s' is not local") % path) | 712 raise util.Abort(_("repository '%s' is not local") % path) |
713 if not options['hidden']: | |
714 repo = repo.filtered('hidden') | |
715 else: | |
716 repo = repo.unfiltered() | |
713 repo.ui.setconfig("bundle", "mainreporoot", repo.root) | 717 repo.ui.setconfig("bundle", "mainreporoot", repo.root) |
714 except error.RequirementError: | 718 except error.RequirementError: |
715 raise | 719 raise |
716 except error.RepoError: | 720 except error.RepoError: |
717 if cmd not in commands.optionalrepo.split(): | 721 if cmd not in commands.optionalrepo.split(): |