comparison mercurial/subrepoutil.py @ 38631:9ef10437bb88

grep: change default behaviour to search working directory files (BC) With this patch, grep searches on the working directory by default and looks for all files tracked by the working directory and greps on them. ### OLD BEHAVIOUR $ hg init a $ cd a $ echo "some text">>file1 $ hg add file1 $ hg commit -m "adds file1" $ hg mv file1 file2 $ hg grep "some" `file2:1:some text` `file1:0:some text` This behaviour is undesirable since file1 is not in the current history and was renamed as file2, so the second result was redundant and confusing. ### NEW BEHAVIOUR $ hg init a $ cd a $ echo "some text">>file1 $ hg add file1 $ hg commit -m "adds file1" $ hg mv file1 file2 $ hg grep "some" `file2:2147483647:some text` Differential Revision: https://phab.mercurial-scm.org/D3826
author Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
date Fri, 06 Jul 2018 00:39:21 +0530
parents b94fecf4cd8c
children 876494fd967d
comparison
equal deleted inserted replaced
38630:e1987261dd05 38631:9ef10437bb88