tests/test-revert-flags
author Brodie Rao <me+hg@dackz.net>
Wed, 26 Nov 2008 08:58:31 -0500
changeset 7455 c9fd5474a707
parent 6030 d0dbae32517c
permissions -rwxr-xr-x
color: add --color switch --color works like GNU grep --color. --color=auto only colorizes output for non-dumb terminals that are TTYs.

#!/bin/sh

"$TESTDIR/hghave" execbit || exit 80

hg init repo
cd repo
echo foo > foo
chmod 644 foo
hg ci -qAm '644'

chmod 755 foo
hg ci -qAm '755'

echo '% reverting to rev 0'
hg revert -a -r 0
hg st
hg diff --git