Mercurial > hgsubversion
diff hgsubversion/wrappers.py @ 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 | cc1d4aa3ba41 |
children | 60948939555d |
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)