changeset 619:8beb5e28c23b

util: handle change to hg.parseurl from 3d6915f5a2bb
author Augie Fackler <durin42@gmail.com>
date Sat, 12 Jun 2010 20:32:02 -0500
parents 82bfc96a1311
children 8acae2416ec1
files hgsubversion/util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -96,6 +96,9 @@ def parseurl(url, heads=[]):
         svn_url, heads, checkout = parsed
     else:
         svn_url, heads = parsed
+        if isinstance(heads, tuple) and len(heads) == 2:
+            # hg 1.6 or later
+            _junk, heads = heads
         if heads:
             checkout = heads[0]
         else: