1 #!/bin/sh
2
3 rm -rf a
4 hg init a
5 cd a
6
7 echo foo > foo
8 hg ci -qAm0
9 chmod +x foo
10 hg ci -m1
11 hg co -q 0
12 echo dirty > foo
13 sleep 1
14 hg up -q
15 cat foo
16 hg st -A
17