comparison mercurial/hg.py @ 4081:e6d26e71f049

merge with crew-stable
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 13 Feb 2007 10:25:45 -0200
parents 6b4127c7d52a 0f9381cf9723
children 6cbfa740c129
comparison
equal deleted inserted replaced
4073:95ffa36d1d2a 4081:e6d26e71f049
53 repo_setup_hooks = [] 53 repo_setup_hooks = []
54 54
55 def repository(ui, path='', create=False): 55 def repository(ui, path='', create=False):
56 """return a repository object for the specified path""" 56 """return a repository object for the specified path"""
57 repo = _lookup(path).instance(ui, path, create) 57 repo = _lookup(path).instance(ui, path, create)
58 ui = getattr(repo, "ui", ui)
58 for hook in repo_setup_hooks: 59 for hook in repo_setup_hooks:
59 hook(ui, repo) 60 hook(ui, repo)
60 return repo 61 return repo
61 62
62 def defaultdest(source): 63 def defaultdest(source):