hgbook

diff en/examples/bisect @ 379:dbc78b312fc0

finished translation of tour-basic
author Javier Rojas <jerojasro@devnull.li>
date Mon Oct 27 23:29:24 2008 -0500 (2008-10-27)
parents 7a6bd93174bd
children 51b5d56744c5
line diff
     1.1 --- a/en/examples/bisect	Mon Dec 31 20:06:58 2007 -0800
     1.2 +++ b/en/examples/bisect	Mon Oct 27 23:29:24 2008 -0500
     1.3 @@ -1,7 +1,11 @@
     1.4  #!/bin/bash
     1.5  
     1.6 +if  hg -v | head -1 | grep -e "version 0.*"
     1.7 +then
     1.8 +#On mercurial 1.0 and later bisect is a builtin
     1.9  echo '[extensions]' >> $HGRC
    1.10  echo 'hbisect =' >> $HGRC
    1.11 +fi
    1.12  
    1.13  # XXX There's some kind of horrible nondeterminism in the execution of
    1.14  # bisect at the moment.  Ugh.
    1.15 @@ -33,7 +37,11 @@
    1.16  
    1.17  #$ name: search.init
    1.18  
    1.19 +if  hg -v | head -1 | grep -e "version 0.*"
    1.20 +then
    1.21 +#On mercurial 1.0 --init disappeared
    1.22  hg bisect --init
    1.23 +fi
    1.24  
    1.25  #$ name: search.bad-init
    1.26