mercurial/dispatch.py
branchstable
changeset 20330 69a0d22b9677
parent 20328 03d345da0579
child 20788 f144928dd058
child 20826 dd2e25e49862
--- 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"))