tests/test-revert-unknown
author Wesley J. Landaker <wjl@icecavern.net>
Thu, 12 Jul 2007 13:55:20 -0600
changeset 4869 be591b740e0f
parent 2965 890e285c52a1
permissions -rwxr-xr-x
Handle CGI SSL detection via HTTPS environment better. Some servers send on/off, 0/1, yes/no, and may be upper or lower case. This fix will handle all of those permutations. It was inspired by the detection done in in some other wsgi python web applications I looked at.

#!/bin/sh

hg init
touch unknown

touch a
hg add a
hg ci -m "1" -d "1000000 0"

touch b
hg add b
hg ci -m "2" -d "1000000 0"

echo %% Should show unknown
hg status
hg revert -r 0 --all
echo %% Should show unknown and b removed
hg status
echo %% Should show a and unknown
ls