view tools/bisect-find-bad.sh @ 211:05243ec295e1

fetch: Fix a bug that caused plaintexts to be interpreted as missing more often than they should be. Also refactored a large part of hg_delta_editor to make it carry slightly less state around.
author Augie Fackler <durin42@gmail.com>
date Mon, 16 Mar 2009 23:19:00 -0500
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