[Updated] D8580: grep: add test coverage of behavior on symlinks
valentin.gatienbaron (Valentin Gatien-Baron)
phabricator at mercurial-scm.org
Tue May 26 16:55:15 UTC 2020
valentin.gatienbaron updated this revision to Diff 21485.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8580?vs=21467&id=21485
BRANCH
default
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/20200526/a8689218/attachment-0002.html>
More information about the Mercurial-patches
mailing list