Comment 9 for bug 75577

Revision history for this message
Johan Dahlberg (johan-d) wrote :

Hello!

I've created a patch, which I think fixes this problem.
It is done by making iter_file_patch() in bzrlib/patches.py look for contiguous lines beginning with "--- ", "+++ " and "@@ ". I as have understood it, this unambiguously indicates the beginning of a new file in a unified patch.

However, I was thinking that a simpler solution may be possible. When I look at diffs created by "bzr diff", each new file seems to start with a line beginning with "=== ".

Is this line "=== " something which _always_ exists in bzr diffs?
(For unified diffs created with the "diff" command they do not exist.)

Regards,
/Johan Dahlberg