[darcs-devel] [patch738] redundant exit line in Whatsnew (and 2 more)
Guillaume Hoffmann
bugs at darcs.net
Fri Mar 9 20:43:43 UTC 2012
Guillaume Hoffmann <guillaumh at gmail.com> added the comment:
The current bundle exhibits weird behaviour for darcs record --unified
(also revert) when a first hunk is a line add. Say I have a recorded
file that is: "1\n2\n3\n" and the changes are:
hunk ./a 1
+O
hunk ./a 4
-3
+33
darcs rec -u shows:
hunk ./a 1
+O
1
2
3
hunk ./a 4
1
2
3
-3
+33
Seems that it has the correct line number of the second hunk, but it
tries to do an unified diff agains a pristine state that doesn't have
that new first line, hence the appearance of the "3" line while it
shouldn't.
Somehow, whatsnew --unified gets it right.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch738>
__________________________________
More information about the darcs-devel
mailing list