tests/test-permissions
author Matt Mackall <mpm@selenic.com>
Fri, 21 Apr 2006 15:33:51 -0500
changeset 2108 30c7564f6dfc
parent 1933 7544700fd931
child 2223 b72562060e45
permissions -rwxr-xr-x
Move empty local repo logic for pull into findincoming This fixes a silly attempt to pull a changegroup from an empty repo.

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