changeset 431:d13a05515acf

Fixing problem on bisect that inhibits building with mercurial 1.0 or later
author Igor Támara <igor@tamarapatino.org>
date Sat, 18 Oct 2008 06:02:21 -0500
parents 3502b859cfe4
children 04c08ad7e92e
files en/examples/bisect
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/en/examples/bisect	Sat Oct 18 03:27:44 2008 -0500
+++ b/en/examples/bisect	Sat Oct 18 06:02:21 2008 -0500
@@ -1,7 +1,11 @@
 #!/bin/bash
 
+if  hg -v | head -1 | grep -e "version 0.*"
+then
+#On mercurial 1.0 and later bisect is a builtin
 echo '[extensions]' >> $HGRC
 echo 'hbisect =' >> $HGRC
+fi
 
 # XXX There's some kind of horrible nondeterminism in the execution of
 # bisect at the moment.  Ugh.
@@ -33,7 +37,11 @@
 
 #$ name: search.init
 
+if  hg -v | head -1 | grep -e "version 0.*"
+then
+#On mercurial 1.0 --init disappeared
 hg bisect --init
+fi
 
 #$ name: search.bad-init