tests/test-grep.t
changeset 38342 b8f45fc27370
parent 38217 16f93a3b8b05
child 38421 7fbb5d76c555
--- a/tests/test-grep.t	Wed Jun 13 22:50:32 2018 +0530
+++ b/tests/test-grep.t	Wed Jun 13 16:22:54 2018 +0530
@@ -372,6 +372,23 @@
 
   $ cd ..
 
+Test for showing working of allfiles flag
+
+  $ hg init sng
+  $ cd sng
+  $ echo "unmod" >> um
+  $ hg ci -A -m "adds unmod to um"
+  adding um
+  $ echo "something else" >> new
+  $ hg ci -A -m "second commit"
+  adding new
+  $ hg grep -r "." "unmod"
+  [1]
+  $ hg grep -r "." "unmod" --allfiles
+  um:1:unmod
+
+  $ cd ..
+
 Fix_Wdir(): test that passing wdir() t -r flag does greps on the
 files modified in the working directory