--- a/mercurial/dispatch.py Thu Jan 30 15:03:36 2014 +0900
+++ b/mercurial/dispatch.py Mon Jan 27 10:57:20 2014 +0100
@@ -773,8 +773,6 @@
repo = hg.repository(ui, path=path)
if not repo.local():
raise util.Abort(_("repository '%s' is not local") % path)
- if options['hidden']:
- repo = repo.unfiltered()
repo.ui.setconfig("bundle", "mainreporoot", repo.root)
except error.RequirementError:
raise
@@ -794,6 +792,8 @@
raise
if repo:
ui = repo.ui
+ if options['hidden']:
+ repo = repo.unfiltered()
args.insert(0, repo)
elif rpath:
ui.warn(_("warning: --repository ignored\n"))