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

valentin.gatienbaron (Valentin Gatien-Baron) phabricator at mercurial-scm.org
Mon May 25 23:42:26 UTC 2020


valentin.gatienbaron created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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,13 @@
   new:modified
   um:unmod
 
- which can be overridden by -rREV
+#if symlink
+  $ rm -f added; ln -s symlink-added added
+  $ hg grep '' | grep added
+  added:symlink-added
+#endif
+
+which can be overridden by -rREV
 
   $ hg grep -r. mod
   um:1:unmod



To: valentin.gatienbaron, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200525/3edf8f9f/attachment.html>


More information about the Mercurial-patches mailing list