# 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 --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -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'''