Mercurial > hg
comparison tests/test-hgweb-diffs.t @ 20838:fe849868fc5a
grep: exit loop immediately, if matching is found in the file for "hg grep -l"
Before this patch, internal function "display()" of "hg grep" is not
efficient for "-l"/"--files-with-matches", because loop is continued,
even after the first matching is found in the specified file.
This patch exits loop immediately, if matching is found for
"--files-with-matches".
In this case, "before is None" is equal to "opts.get('files_with_matches')".
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 15 Feb 2014 19:54:14 +0900 |
parents | 544848ef65f2 |
children | 8c9e84b44221 |
comparison
equal
deleted
inserted
replaced
20837:191a0ae37767 | 20838:fe849868fc5a |
---|