[PATCH] peer: change arg name to convey it can be a repo as well

Idan Kamara idankk86 at gmail.com
Tue Jul 5 06:35:12 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1309865335 -10800
# Node ID b010f45929cb188039919a9ab504808a894cb05a
# Parent  333d5d159a380a0323b7f220d29b9525321be3ce
peer: change arg name to convey it can be a repo as well

diff -r 333d5d159a38 -r b010f45929cb mercurial/hg.py
--- a/mercurial/hg.py	Tue Jul 05 14:28:55 2011 +0300
+++ 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):


More information about the Mercurial-devel mailing list