comparison mercurial/hg.py @ 14737:b39ed8c8e5e5 stable

call reposetup for repositories returned from peer (issue2864) Extension setup functions were not being called when repositories were obtained using the peer function instead of the repository function.
author David Golub
date Fri, 24 Jun 2011 11:39:12 -0400
parents bd1acea552ff
children de9eb6b1da4f
comparison
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