evolve: update the errors message to request mercurial 3.0 and above
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 19 May 2014 17:45:28 -0700
changeset 940 0523c7c63759
parent 939 d46ef45810e4
child 941 576d3a198269
evolve: update the errors message to request mercurial 3.0 and above And update the checking code too. This extension already requires 3.0 for some time.
hgext/evolve.py
--- a/hgext/evolve.py	Mon May 19 12:44:30 2014 -0700
+++ b/hgext/evolve.py	Mon May 19 17:45:28 2014 -0700
@@ -34,11 +34,11 @@
     from mercurial import obsolete
     if not obsolete._enabled:
         obsolete._enabled = True
-    from mercurial import exchange
-    exchange.pull
+    from mercurial import bundle2
+    bundle2._
 except (ImportError, AttributeError):
     raise util.Abort('Your Mercurial is too old for this version of Evolve\n'
-                     'requires version >> 2.9.x')
+                     'requires version >> 3.0.x')