Patchwork D8580: grep: add test coverage of behavior on symlinks

login
register
mail settings
Submitter phabricator
Date May 25, 2020, 11:42 p.m.
Message ID <differential-rev-PHID-DREV-omcvlwbxptbr6erllkma-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46373/
State Superseded
Headers show

Comments

phabricator - May 25, 2020, 11:42 p.m.
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




To: valentin.gatienbaron, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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