I'm able to fix this bug with a patch to bzr's patch handling to make it more lenient. (Currently, that patch handling code doesn't accept "junk" before and after the individual patches within a file.). Will attach a patch.
hno, do you know if the patches.py code is meant to handle any patch file? If so, this is appropriate. If it's really only meant to handle bzr-generated patches, then bzr-gtk is misusing the bzrlib code.
I'm able to fix this bug with a patch to bzr's patch handling to make it more lenient. (Currently, that patch handling code doesn't accept "junk" before and after the individual patches within a file.). Will attach a patch.
hno, do you know if the patches.py code is meant to handle any patch file? If so, this is appropriate. If it's really only meant to handle bzr-generated patches, then bzr-gtk is misusing the bzrlib code.