mercurial/dispatch.py
branchstable
changeset 20330 69a0d22b9677
parent 20328 03d345da0579
child 20788 f144928dd058
child 20826 dd2e25e49862
equal deleted inserted replaced
20329:45f23b1ff345 20330:69a0d22b9677
   771         else:
   771         else:
   772             try:
   772             try:
   773                 repo = hg.repository(ui, path=path)
   773                 repo = hg.repository(ui, path=path)
   774                 if not repo.local():
   774                 if not repo.local():
   775                     raise util.Abort(_("repository '%s' is not local") % path)
   775                     raise util.Abort(_("repository '%s' is not local") % path)
   776                 if options['hidden']:
       
   777                     repo = repo.unfiltered()
       
   778                 repo.ui.setconfig("bundle", "mainreporoot", repo.root)
   776                 repo.ui.setconfig("bundle", "mainreporoot", repo.root)
   779             except error.RequirementError:
   777             except error.RequirementError:
   780                 raise
   778                 raise
   781             except error.RepoError:
   779             except error.RepoError:
   782                 if cmd not in commands.optionalrepo.split():
   780                 if cmd not in commands.optionalrepo.split():
   792                                                 " (.hg not found)")
   790                                                 " (.hg not found)")
   793                                               % os.getcwd())
   791                                               % os.getcwd())
   794                     raise
   792                     raise
   795         if repo:
   793         if repo:
   796             ui = repo.ui
   794             ui = repo.ui
       
   795             if options['hidden']:
       
   796                 repo = repo.unfiltered()
   797         args.insert(0, repo)
   797         args.insert(0, repo)
   798     elif rpath:
   798     elif rpath:
   799         ui.warn(_("warning: --repository ignored\n"))
   799         ui.warn(_("warning: --repository ignored\n"))
   800 
   800 
   801     msg = ' '.join(' ' in a and repr(a) or a for a in fullargs)
   801     msg = ' '.join(' ' in a and repr(a) or a for a in fullargs)