tests/test-revert-flags
author Dirkjan Ochtman <dirkjan@ochtman.nl>
Tue, 12 May 2009 10:57:55 +0200
changeset 8359 07ddec2ea203
parent 6030 d0dbae32517c
permissions -rwxr-xr-x
hgweb: trust config file passed into hgwebdir Before this patch, hgwebdir suddenly showed up empty for a webdir-conf file that was for some reason not trusted. This was previously not a problem because the trust mechanism wasn't required for the very separate webdir-conf.

#!/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