tests/test-remove
author bos@serpentine.internal.keyresearch.com
Mon, 29 Aug 2005 10:05:49 -0700
changeset 1146 9061f79c6c6f
parent 936 b62d1e738fa9
child 1570 6a104941d56a
permissions -rwxr-xr-x
grep: extend functionality, add man page entry, add unit test. walkchangerevs now returns a two-tuple. Its behaviour is also extensively commented. The annotate command's getname function has been factored out to a new function, trimname, so it can be shared between annotate and grep. The behaviour of grep has been beefed up, so that it now performs a number of useful functions.

#!/bin/sh

hg init a
cd a
echo a > foo
hg add foo
hg commit -m 1 -d "0 0"
rm foo
hg remove foo
hg commit -m 2 -d "0 0"

cd ..
hg clone a b