1. Summarise the issue (what were doing, what went wrong?)
I created a file foo with no trailing \n, and recorded its addition.
Upon removing foo, the output was strange (there is a spurious line
addition symbol):
hunk ./foo 1
-foo
+
rmfile ./foo
Indeed, when first adding foo, if I had diffed the file addition, I
would have seem the same problem, but inverted:
addfile ./foo
hunk ./foo 1
-
+foo
The same problem occurs for files with any number of (\n-terminated)
lines, but with no \n on the final line.
2. What behaviour were you expecting instead?
The spurious '+' should not be present for the removal case and the '-'
not present for the addition case.
There is a question about what darcs should do in the presence of such
"text files" (Text files should be a list of newline-terminated strings)
Git for example warns when handling such files.
Might be related to http://bugs.darcs.net/issue1717
|