tests/test-empty-dir
author bos@serpentine.internal.keyresearch.com
Mon, 29 Aug 2005 10:05:49 -0700
changeset 1146 9061f79c6c6f
parent 814 0902ffece4b4
child 1926 ba198d17eea9
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
echo 123 > a
hg add a
hg commit -m "first" -d "0 0" a
mkdir sub
echo 321 > sub/b
hg add sub/b
hg commit -m "second" -d "0 0" sub/b
cat sub/b
hg co 0
cat sub/b
ls sub

true