tests/test-pull-permission
author Vadim Gelfer <vadim.gelfer@gmail.com>
Tue, 20 Jun 2006 15:23:01 -0700
changeset 2466 e10665147d26
parent 1933 7544700fd931
child 3853 c0b449154a90
permissions -rwxr-xr-x
push over http: server side authorization support. new hgrc entries allow_push, deny_push, push_ssl control push over http. allow_push list controls push. if empty or not set, no user can push. if "*", any user (incl. unauthenticated user) can push. if list of user names, only authenticated users in list can push. deny_push list examined before allow_push. if "*", no user can push. if list of user names, no unauthenticated user can push, and no users in list can push. push_ssl requires https connection for push. default is true, so password sniffing can not be done.

#!/bin/sh

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

chmod -w .hg

cd ..

hg clone a b

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

cd b
hg verify