Mercurial > hg
changeset 14555:1ceb2cf9f9d9
hg: have peer() call _lookup directly
Note that this means that peers no longer call the extension
repository setup hooks.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 10 Jun 2011 11:43:38 -0500 |
parents | 68db17047637 |
children | 517e1d88bf7e |
files | mercurial/hg.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Fri Jun 10 11:43:38 2011 -0500 +++ b/mercurial/hg.py Fri Jun 10 11:43:38 2011 -0500 @@ -101,7 +101,7 @@ def peer(ui, opts, path, create=False): '''return a repository peer for the specified path''' rui = remoteui(ui, opts) - return repository(rui, path, create) + return _lookup(path).instance(rui, path, create) def defaultdest(source): '''return default destination of clone if none is given'''