mercurial/hg.py
branchstable
changeset 14737 b39ed8c8e5e5
parent 14607 bd1acea552ff
child 14825 de9eb6b1da4f
equal deleted inserted replaced
14736:65f8f98aa924 14737:b39ed8c8e5e5
    99     return repo
    99     return repo
   100 
   100 
   101 def peer(ui, opts, path, create=False):
   101 def peer(ui, opts, path, create=False):
   102     '''return a repository peer for the specified path'''
   102     '''return a repository peer for the specified path'''
   103     rui = remoteui(ui, opts)
   103     rui = remoteui(ui, opts)
   104     return _peerlookup(path).instance(rui, path, create)
   104     return repository(rui, path, create)
   105 
   105 
   106 def defaultdest(source):
   106 def defaultdest(source):
   107     '''return default destination of clone if none is given'''
   107     '''return default destination of clone if none is given'''
   108     return os.path.basename(os.path.normpath(source))
   108     return os.path.basename(os.path.normpath(source))
   109 
   109