tests/test-lock-badness
author Vadim Gelfer <vadim.gelfer@gmail.com>
Thu, 11 May 2006 10:14:48 -0700
changeset 2266 3f7692b0ff13
parent 2016 ff5c9a92f556
child 3853 c0b449154a90
permissions -rwxr-xr-x
hooks: add preupdate and update hooks. preupdate run before working dir updated. can prevent update. update run after working dir updated.

#!/bin/sh

hg init a
echo a > a/a
hg --cwd a ci -A -m a
hg clone a b
echo b > b/b
hg --cwd b ci -A -m b
chmod 100 a/.hg
hg --cwd b push ../a
chmod 700 a/.hg