tests/test-grep.t
changeset 38652 bfcd5c7cbf9a
parent 38651 5e4027db52f4
child 38653 aabc01da9834
equal deleted inserted replaced
38651:5e4027db52f4 38652:bfcd5c7cbf9a
   454   $ hg grep -r "wdir()" "abra"
   454   $ hg grep -r "wdir()" "abra"
   455   a:2147483647:abracadara
   455   a:2147483647:abracadara
   456 
   456 
   457   $ cd ..
   457   $ cd ..
   458 
   458 
   459 Change Default of grep, that is, the files not in current working directory
   459 Change Default of grep by ui.tweakdefaults, that is, the files not in current
   460 should not be grepp-ed on
   460 working directory should not be grepp-ed on
       
   461 
   461   $ hg init ab
   462   $ hg init ab
   462   $ cd ab
   463   $ cd ab
       
   464   $ cat <<'EOF' >> .hg/hgrc
       
   465   > [ui]
       
   466   > tweakdefaults = True
       
   467   > EOF
   463   $ echo "some text">>file1
   468   $ echo "some text">>file1
   464   $ hg add file1
   469   $ hg add file1
   465   $ hg commit -m "adds file1"
   470   $ hg commit -m "adds file1"
   466   $ hg mv file1 file2
   471   $ hg mv file1 file2
   467   $ hg grep "some"
   472   $ hg grep "some"