tests/test-diffdir
author Wesley J. Landaker <wjl@icecavern.net>
Thu, 12 Jul 2007 22:55:44 -0700
changeset 4872 419a6f715c6a
parent 4208 f80cf8b7bbd9
permissions -rwxr-xr-x
Use wsgi.url_scheme instead of ad-hoc CGI checks. Instead of each place in hgweb_mod that needs to check for SSL or get the protocol scheme (http vs. https) doing it ad-hoc, make them just look at the wsgi.url_scheme which because of previous patches is now always set correctly.

#!/bin/sh

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

echo 123 > b
hg add b
hg diff --nodates

hg diff --nodates -r tip

echo foo > a
hg diff --nodates

hg diff -r ""
hg diff -r tip -r ""

true