tests/test-addremove
author Vadim Gelfer <vadim.gelfer@gmail.com>
Thu, 11 May 2006 10:14:48 -0700
changeset 2266 3f7692b0ff13
parent 1933 7544700fd931
child 2958 ff3ea21a981a
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 rep
cd rep
mkdir dir
touch foo dir/bar
hg -v addremove
hg -v commit -m "add 1" -d "1000000 0"
cd dir/
touch ../foo_2 bar_2
hg -v addremove
hg -v commit -m "add 2" -d "1000000 0"