Subject: bug#13307: log-edit-extract-headers can break a bzr repository

From: Glenn Morris <[email-masked]>
Date: Sun, 30 Dec 2012 03:41:01 -0500

Package: emacs
Version: 24.2.91
Severity: important

I figured out how my recent bzr woes happened:

mkdir /tmp/foo
cd /tmp/foo
bzr init
touch file
bzr add file
bzr commit -m "commit"
echo foo >> file

emacs-24.2.91 -Q file &
C-x v v

In the vc-log buffer, enter the text between the --- lines below.
Note that the line immediately after the "Fixes:" line is not blank but
has an innocous single space character...

---
Fixes: debbugs:123

Commit message
---

This ends up passing: --fixes 'debbugs:123\n ' to bzr commit, and this
breaks bzr log.