# HG changeset patch # User Matt Mackall # Date 1307724218 18000 # Node ID 1ceb2cf9f9d9bf7deea17ec50223b5f97e289772 # Parent 68db17047637409bb3cef9d083b8c41097bf4f0d hg: have peer() call _lookup directly Note that this means that peers no longer call the extension repository setup hooks. diff -r 68db17047637 -r 1ceb2cf9f9d9 mercurial/hg.py --- 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'''