tests/test-pull-permission
author Christian Boos <cboos@neuf.fr>
Thu, 03 Nov 2005 14:24:07 -0800
changeset 1504 0fcdd126642d
parent 1244 937ee88da3ef
child 1750 955a7caf005c
permissions -rwxr-xr-x
fix file opening for some commands on Windows Using file as opener in debug commands won't work on Windows, as the index and data files needs to be opened in binary mode.

#!/bin/sh

mkdir a
cd a
hg init
echo foo > b
hg add b
hg ci -m "b" -d "0 0"

chmod -w .hg

cd ..

hg clone a b
cd b
hg verify

cd ..

chmod +w a/.hg # let test clean up