view tools/bisect-find-bad.sh @ 301:79440ed81011

Allow specifying a revision to stop at using the -H flag. This is useful for converting repositories which have been deleted or renamed, such as llvm-gcc-4-2 in the LLVM repositories which was renamed to llvm-gcc-4.2 shortly after its creation. Also, consolidate the two places in svn_swig_wrapper.py where a default chunk size is specified to one, single variable declaration.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 27 Mar 2009 03:21:45 +0100
parents de3807ceea5c
children b1d2ea765516
line wrap: on
line source

#!/bin/bash
/bin/rm -rf *
svn export `hg svn info 2> /dev/null | grep '^URL: ' | sed 's/URL: //'` -`hg svn parent | sed 's/.*: //;s/ .*//'` . --force
if [ `hg st | wc -l` = 0 ] ; then
    exit 0
else
    hg revert --all
    hg purge
    exit 1
fi