Mads Kiilerich
0e8795ccd6
spelling: fixes from spell checker
2014-04-13 19:01:00 +02:00
Takumi IINO
108a15e83e
grep: highlight all matched words
...
"hg grep" highlights first matched word only.
This behavior is different from GNU grep.
This patch makes highlight all matched words.
2014-03-31 01:00:05 +09:00
Idan Kamara
34cb035697
grep: don't search past the end of the searched string
...
'*' causes the resulting RE to match 0 or more repetitions of the preceding RE:
>>> bool(re.search('.*', ''))
>>> True
This causes an infinite loop because currently we're only checking if there was
a match without looking at where we are in the searched string.
2012-11-12 19:27:03 +02:00
Idan Kamara
1d290d6e7b
grep: colorize all fields
...
Colors were picked in accordance to GNU grep.
2012-10-14 20:27:55 +02:00
Idan Kamara
415ed95013
test-grep: add a test for -l
2012-10-14 20:40:23 +02:00
Mads Kiilerich
9355854f8a
tests: cleanup of tests that got lost in their own nested directories
...
Some tests ended up in a directory several directories deeper than $TESTTMP,
usually because some 'cd ..' had been forgotten between different test cases.
Add 'cd ..' where they are missing so the tests get back where they started.
2012-06-11 01:38:32 +02:00
Thomas Arendsen Hein
21bb7c4cdc
tests: make tests work if directory contains special characters
...
With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
2012-04-03 19:06:35 +02:00
Matt Mackall
8ba239a418
grep: make multiline mode the default (BC)
...
This is a much more logical way to deal with ^ and $.
Old ^ and $ behavior are available with \A and \Z.
2012-01-03 15:48:58 -06:00
Mads Kiilerich
06d30b903b
grep: correct handling of matching lines without line ending (issue3050)
...
Matching lines without trailing '\n' was missing the last character.
That seems to have been an unintended side effect of 8abe3f27975c.
The test in c21748e4cd4d documents the bad behaviour.
2011-10-16 01:26:06 +02:00
Martin Geisler
5a0135a6ca
tests: remove redundant mkdir
...
There are still many tests that check that a bare 'hg init'
initializes the current directory.
2011-04-19 12:04:44 +02:00
Md. O. Shayan
475f1c2d09
grep: don't print data from binary files for matches (issue2614)
2011-04-09 23:13:17 +05:30
Mads Kiilerich
635406bf76
tests: use (esc) for all non-ASCII test output
2010-11-08 01:41:41 +01:00
Martin Geisler
3d112b3042
tests: added a short description to issue numbers
...
Many tests already had a short line to describe what IssueXXX is
about. I find that quite useful when reading a test.
2010-09-24 10:13:49 +02:00
Matt Mackall
08439e0f2d
tests: add exit codes to unified tests
2010-09-16 17:51:32 -05:00
Nicolas Dumazet
8e66bf00c0
tests: unify test-grep
2010-08-16 02:03:29 +09:00