comparison tests/test-grep @ 2868:81f351c5264d

grep: display correct user/revision for --all in reverse. Also handle multiple occurrences of the same line by storing linestates in an array instead of a dict, and using difflib to compute the difference between linestates.
author Brendan Cully <brendan@kublai.com>
date Sat, 12 Aug 2006 13:51:14 -0700
parents 5e47e42b14ba
children 8eaaf1321bfe
comparison
equal deleted inserted replaced
2842:7706fa503677 2868:81f351c5264d
16 hg commit -m 3 -u eggs -d '3 0' 16 hg commit -m 3 -u eggs -d '3 0'
17 head -n 3 port > port1 17 head -n 3 port > port1
18 mv port1 port 18 mv port1 port
19 hg commit -m 4 -u spam -d '4 0' 19 hg commit -m 4 -u spam -d '4 0'
20 hg grep port port 20 hg grep port port
21 echo 'FIXME: history is wrong here'
22 hg grep --all -nu port port 21 hg grep --all -nu port port
23 hg grep import port 22 hg grep import port