hgext/evolve.py
changeset 952 f83f46411b09
parent 950 cf4dcf49d998
child 953 a02e5916a7e3
--- a/hgext/evolve.py	Mon Jun 02 14:58:45 2014 -0700
+++ b/hgext/evolve.py	Tue Jun 03 01:16:39 2014 -0700
@@ -19,7 +19,7 @@
     - improves some aspect of the early implementation in 2.3
 '''
 
-testedwith = '3.0'
+testedwith = '3.0.1'
 buglink = 'https://bitbucket.org/marmoute/mutable-history/issues'
 
 import sys
@@ -34,11 +34,14 @@
     from mercurial import obsolete
     if not obsolete._enabled:
         obsolete._enabled = True
-    from mercurial import bundle2
-    bundle2._
+    from mercurial import wireproto
+    gboptslist = getattr(wireproto, 'gboptslist', None)
 except (ImportError, AttributeError):
+    gboptslist = None
+
+if gboptslist is None:
     raise util.Abort('Your Mercurial is too old for this version of Evolve\n'
-                     'requires version >> 3.0.x')
+                     'requires version 3.0.1 or above')