diff mercurial/hg.py @ 14839:510c893a726f

peer: change arg name to convey it can be a repo as well
author Idan Kamara <idankk86@gmail.com>
date Tue, 05 Jul 2011 14:28:55 +0300
parents de9eb6b1da4f
children 4c523a2af6e7
line wrap: on
line diff
--- 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):