changeset 771:768639283275

incoming: pass unexpanded source to wrapped function (fixes #178) This will allow the MQ extension to use paths from the patch repository.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Mon, 29 Nov 2010 11:50:55 +0100
parents 4dfc41b15d9a
children f3af4fe98d37
files hgsubversion/wrappers.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/wrappers.py
+++ b/hgsubversion/wrappers.py
@@ -54,14 +54,14 @@ def parents(orig, ui, repo, *args, **opt
     return 0
 
 
-def incoming(orig, ui, repo, source='default', **opts):
+def incoming(orig, ui, repo, origsource='default', **opts):
     """show incoming revisions from Subversion
     """
 
-    source, revs, checkout = util.parseurl(ui.expandpath(source))
+    source, revs, checkout = util.parseurl(ui.expandpath(origsource))
     other = hg.repository(ui, source)
     if 'subversion' not in other.capabilities:
-        return orig(ui, repo, source, **opts)
+        return orig(ui, repo, origsource, **opts)
 
     svn = other.svn
     meta = repo.svnmeta(svn.uuid, svn.subdir)