D3728: grep: adds allfiles mode
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Sat Jun 16 23:37:52 EDT 2018
yuja added a comment.
> + $ hg init sng
> + $ cd sng
> + $ echo "unmod" >> um
> + $ hg ci -A -m "adds unmod to um"
> + adding um
> + $ echo "something else" >> new
> + $ hg ci -A -m "second commit"
> + adding new
> + $ hg grep -r "." "unmod"
> + [1]
> + $ hg grep -r "." "unmod" --unmodified
--allfiles ?
> @@ -1881,6 +1881,9 @@
>
> yielding each context, the iterator will first call the prepare
> function on each context in the window in forward order.'''
>
>
> + allfiles = opts.get('allfiles')
> + if allfiles and len(revs) > 1:
> + raise error.Abort(_("multiple revisions not supported with --allfiles"))
`revs` isn't defined yet.
> follow = opts.get('follow') or opts.get('follow_first')
> revs = _walkrevs(repo, opts)
> if not revs:
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3728
To: sangeet259, #hg-reviewers
Cc: pulkit, yuja, mharbison72, mercurial-devel
More information about the Mercurial-devel
mailing list