tests/test-grep
changeset 3951 cb66641cdee3
parent 3950 3d3007064a17
child 4877 242026115e6a
--- a/tests/test-grep	Fri Dec 22 22:16:05 2006 +0100
+++ b/tests/test-grep	Fri Dec 22 22:51:39 2006 +0100
@@ -31,3 +31,22 @@
 echo deport >> port2
 hg commit -m 5 -u eggs -d '6 0'
 hg grep -f --all -nu port port2
+
+cd ..
+hg init t2
+cd t2
+hg grep foobar foo
+hg grep foobar
+echo blue >> color
+echo black >> color
+hg add color
+hg ci -m 0 -d '0 0'
+echo orange >> color
+hg ci -m 1 -d '0 0'
+echo black > color
+hg ci -m 2 -d '0 0'
+echo orange >> color
+echo blue >> color
+hg ci -m 3 -d '0 0'
+hg grep orange
+hg grep --all orange