tests/test-permissions
author Thomas Arendsen Hein <thomas@intevation.de>
Mon, 01 May 2006 19:17:34 +0200
changeset 2174 3044a3fdae76
parent 1933 7544700fd931
child 2223 b72562060e45
permissions -rwxr-xr-x
If default sorting is name, offer name-descending with one click. Additionally no longer ignore case when sorting by name to match default sorting. This makes e.g. a repository "FOO" being listed before "bar".

#!/bin/sh

hg init
echo foo > a
hg add a
hg commit -m "1" -d "1000000 0"
hg verify
chmod -r .hg/data/a.d
hg verify 2>/dev/null || echo verify failed
chmod +r .hg/data/a.d
hg verify 2>/dev/null || echo verify failed
chmod -w .hg/data/a.d
echo barber > a
hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed