mercurial/hg.py
changeset 18382 f3b21beb9802
parent 18303 4d1671b39168
child 18441 1f794204abbd
equal deleted inserted replaced
18381:7ac4449f0f39 18382:f3b21beb9802
   111     peer = _peerorrepo(ui, path, create)
   111     peer = _peerorrepo(ui, path, create)
   112     repo = peer.local()
   112     repo = peer.local()
   113     if not repo:
   113     if not repo:
   114         raise util.Abort(_("repository '%s' is not local") %
   114         raise util.Abort(_("repository '%s' is not local") %
   115                          (path or peer.url()))
   115                          (path or peer.url()))
   116     return repo.filtered('hidden')
   116     return repo.filtered('visible')
   117 
   117 
   118 def peer(uiorrepo, opts, path, create=False):
   118 def peer(uiorrepo, opts, path, create=False):
   119     '''return a repository peer for the specified path'''
   119     '''return a repository peer for the specified path'''
   120     rui = remoteui(uiorrepo, opts)
   120     rui = remoteui(uiorrepo, opts)
   121     return _peerorrepo(rui, path, create).peer()
   121     return _peerorrepo(rui, path, create).peer()