changeset 157:b0ee408732cd

add version info
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 20 Mar 2012 17:04:05 +0100
parents 3c4826fb374a
children 3cdf8291fd97
files enable.sh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/enable.sh	Tue Mar 20 16:58:00 2012 +0100
+++ b/enable.sh	Tue Mar 20 17:04:05 2012 +0100
@@ -3,6 +3,11 @@
 here=`readlink -f "$0"`
 repo_root=`dirname "$here"`
 
+if !( hg --version -q | grep -e 'version 2\.[1-9]' ); then
+    echo 'You need mercurial 2.1 or later' >&2
+    exit 2
+fi
+
 
 
 cat << EOF >&2