# HG changeset patch # User Idan Kamara # Date 1309865335 -10800 # Node ID 510c893a726f202b2aa99f615e1b9849e1f0d367 # Parent 5d261fd00446b8c1d3cf807385cc507954b58aa7 peer: change arg name to convey it can be a repo as well diff -r 5d261fd00446 -r 510c893a726f mercurial/hg.py --- a/mercurial/hg.py Thu Jun 23 15:00:45 2011 -0500 +++ b/mercurial/hg.py Tue Jul 05 14:28:55 2011 +0300 @@ -98,9 +98,9 @@ hook(ui, repo) return repo -def peer(ui, opts, path, create=False): +def peer(uiorrepo, opts, path, create=False): '''return a repository peer for the specified path''' - rui = remoteui(ui, opts) + rui = remoteui(uiorrepo, opts) return repository(rui, path, create) def defaultdest(source):