diff hgsubversion/wrappers.py @ 1121:7a4d8525737a

wrappers: remove pre-1.9 code from hgclonewrapper
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 05 Sep 2013 16:22:01 -0500
parents 8a734c3e9b8d
children 8b20e1bbcd23
line wrap: on
line diff
--- a/hgsubversion/wrappers.py
+++ b/hgsubversion/wrappers.py
@@ -563,11 +563,7 @@ def clone(orig, ui, source, dest=None, *
 
     data = {}
     def hgclonewrapper(orig, ui, *args, **opts):
-        if getattr(hg, 'peer', None):
-            # Since 1.9 (d976542986d2)
-            origsource = args[1]
-        else:
-            origsource = args[0]
+        origsource = args[1]
 
         if isinstance(origsource, str):
             source, branch, checkout = util.parseurl(ui.expandpath(origsource),