diff tests/test-grep.t @ 38652:bfcd5c7cbf9a

grep: restore pre-9ef10437bb88 behavior, enable wdir search by tweakdefaults Unfortunately, python-hglib relies on the original grep behavior and is documented as such. Even though we agreed to introduce the BC, we shouldn't break existing libraries. So this patch flips the default again and move the new default to ui.tweakdefaults. We could instead use HGPLAIN to turn this flag off, but that would be rather confusing as the old/new behaviors are quite different. Differential Revision: https://phab.mercurial-scm.org/D3919
author Yuya Nishihara <yuya@tcha.org>
date Wed, 11 Jul 2018 22:06:04 +0900
parents 5e4027db52f4
children aabc01da9834
line wrap: on
line diff
--- a/tests/test-grep.t	Wed Jul 11 21:51:47 2018 +0900
+++ b/tests/test-grep.t	Wed Jul 11 22:06:04 2018 +0900
@@ -456,10 +456,15 @@
 
   $ cd ..
 
-Change Default of grep, that is, the files not in current working directory
-should not be grepp-ed on
+Change Default of grep by ui.tweakdefaults, that is, the files not in current
+working directory should not be grepp-ed on
+
   $ hg init ab
   $ cd ab
+  $ cat <<'EOF' >> .hg/hgrc
+  > [ui]
+  > tweakdefaults = True
+  > EOF
   $ echo "some text">>file1
   $ hg add file1
   $ hg commit -m "adds file1"