Mercurial > hgsubversion
diff hgsubversion/wrappers.py @ 555:cbd7065e6ab4
util: add parseurl method to abstract away differences between 1.4 and 1.5
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 07 Feb 2010 08:43:32 -0600 |
parents | fa7aab230f1d |
children | 66a8bdff9ced |
line wrap: on
line diff
--- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -57,7 +57,7 @@ def incoming(orig, ui, repo, source='def """show incoming revisions from Subversion """ - source, revs, checkout = hg.parseurl(ui.expandpath(source)) + source, revs, checkout = util.parseurl(ui.expandpath(source)) other = hg.repository(ui, source) if 'subversion' not in other.capabilities: return orig(ui, repo, source, **opts) @@ -81,7 +81,7 @@ def outgoing(repo, dest=None, heads=None assert dest.capable('subversion') # split off #rev; TODO implement --revision/#rev support - svnurl, revs, checkout = hg.parseurl(dest.svnurl, heads) + svnurl, revs, checkout = util.parseurl(dest.svnurl, heads) meta = repo.svnmeta() parent = repo.parents()[0].node() hashes = meta.revmap.hashes() @@ -210,7 +210,7 @@ def pull(repo, source, heads=[], force=F svn_url = source.svnurl # Split off #rev - svn_url, heads, checkout = hg.parseurl(svn_url, heads) + svn_url, heads, checkout = util.parseurl(svn_url, heads) old_encoding = util.swap_out_encoding() # TODO implement skipto support