I am wondering how to improve diff command as part of hg. For example, let's say I have this code:
line 1
line 2
lin3 3
and I change it to become:
if($condition) {
line 1
line 2
line 3
}
hg diff will display the original three lines with a "-" and the new five lines with a "+". Even when I run with -wbB to ignore spaces and line changes. I understand what he is trying to tell me, but can it be โsmarterโ and understand that I added only two lines (and increased the level of three lines)?
EDIT: Is it possible that hg diff will tell you which text was added and where? In contrast to how the "structure" of the code has changed due to these additions?
EDIT 2: I am running Debian (Linux dev 2.6.26) with Mercurial 1.0.1
thank