[Updated] D8580: grep: add test coverage of behavior on symlinks

valentin.gatienbaron (Valentin Gatien-Baron) phabricator at mercurial-scm.org
Thu May 28 16:23:44 UTC 2020


Closed by commit rHG3db660b8eba6: grep: add test coverage of behavior on symlinks (authored by valentin.gatienbaron).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8580?vs=21485&id=21493

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8580/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8580

AFFECTED FILES
  tests/test-grep.t

CHANGE DETAILS

diff --git a/tests/test-grep.t b/tests/test-grep.t
--- a/tests/test-grep.t
+++ b/tests/test-grep.t
@@ -666,7 +666,15 @@
   new:modified
   um:unmod
 
- which can be overridden by -rREV
+#if symlink
+Grepping a symlink greps its destination
+
+  $ rm -f added; ln -s symlink-added added
+  $ hg grep '' | grep added
+  added:symlink-added
+#endif
+
+But we can search files from some other revision with -rREV
 
   $ hg grep -r. mod
   um:1:unmod



To: valentin.gatienbaron, #hg-reviewers, marmoute
Cc: marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200528/55294a80/attachment-0002.html>


More information about the Mercurial-patches mailing list