diff hgext/evolve.py @ 1149:a206ee74f129 stable

evolve: add various version info to save time on troubleshooting
author anatoly techtonik <techtonik@gmail.com>
date Mon, 20 Oct 2014 13:54:46 +0300
parents fb51113a1c08
children 2c99d92faa62
line wrap: on
line diff
--- a/hgext/evolve.py	Mon Nov 03 10:25:20 2014 +0000
+++ b/hgext/evolve.py	Mon Oct 20 13:54:46 2014 +0300
@@ -19,6 +19,7 @@
     - improves some aspect of the early implementation in Mercurial core
 '''
 
+__version__ = '5.1.0'
 testedwith = '3.2'
 buglink = 'http://bz.selenic.com/'
 
@@ -85,7 +86,7 @@
         return oldmemfilectx(*args, **kwargs)
 else:
     raise util.Abort('Your Mercurial is too old for this version of Evolve\n'
-                     'requires version 3.2 or above')
+                     'requires version %s or above' % min(testedwith.split()))
 
 
 # This extension contains the following code