view tests/test-diffdir @ 6136:acfb9fa494e2

hgweb: Pass only filename instead of full path when downloading raw files. Before this patch "filename=foo/bar" was sent and e.g. Firefox offered to save the file as "foo-bar" instead of just "bar".
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 16 Feb 2008 17:51:30 +0100
parents f80cf8b7bbd9
children
line wrap: on
line source

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