D2938: grep: make grep search on working directory by default
sangeet259 (Sangeet Kumar Mishra)
phabricator at mercurial-scm.org
Mon Jun 11 11:43:02 EDT 2018
sangeet259 added a comment.
@yuja I am adding an --unmodified flag to change to change the mode to grep on the unmodified files as well.
What I am trying to do is ::
def fns_generator():
if --unmodified:
for f in ctx:
for f in ctx:
if match(f):
yield f
else :
for f in ctx.files():
for f in ctx:
if match(f):
yield f
Currently, this would work for a single revision, so I am modifying the `prep` function in grep.
Shall I continue and send the patch ?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2938
To: sangeet259, #hg-reviewers
Cc: av6, yuja, pulkit, mercurial-devel
More information about the Mercurial-devel
mailing list