mercurial/hg.py
changeset 14839 510c893a726f
parent 14825 de9eb6b1da4f
child 14952 4c523a2af6e7
--- 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):