This happens if the encrypted bundle part has a line starting with + (maybe - as well) Bundle is already in tree[1] and applies succesfully. See attachment in the URL. 1: http://tinyurl.com/5qmxhp
What's invalid with it? Viewing the attachment shows it to be identical to the tree link
The last addition line is extra produced. (See raw comment)
Serkan, I've downloaded both: http://tinyurl.com/5qmxhp and http://bugs.gentoo.org/attachment.cgi?id=173533&action=view and they are identical. Also they are identical with patch commited in the tree. Could you provide step by step instruction about how to reproduce this problem?
A somewhat-similar-sounding problem showing attachment#182889 [details, diff], which is an unidiff against an unidiff patchfile. It starts with the right side of "Diff" missing the "+" lines: http://bugs.gentoo.org/attachment.cgi?id=182889&action=diff Expected is to get the same content when doing either "View" or "Raw Unified": http://bugs.gentoo.org/attachment.cgi?id=182889 http://bugs.gentoo.org/attachment.cgi?id=182889&action=diff&context=patch&collapsed=&headers=1&format=raw Should I create a separate bug for this?
*** Bug 388017 has been marked as a duplicate of this bug. ***
As for mishandling of bzr patches, I think this is something to be handled upstream. The 'diff' feature is not really crucial to our use of Bugzilla, and it exhibiting weird behavior with non-standard patch formats is not something we should concern ourselves with. As for the other issue reported, I can't really reproduce. The linked 'diff' seems to be correct.