# HG changeset patch # User Greg Ward # Date 1241449093 14400 # Node ID b1442ebb4fcd54064ce4fd9e0912d2490cab73c3 # Parent 68bfc64028db5601b7ca126854994b22d051672b Do not add newlines to path in "filemodify" commands. (The bug was that _get_data() passed the wrong thing to push_line(); the fix was originally in rev 55.1.5 of http://bazaar.launchpad.net/~bzr/bzr-fastimport/fastimport.dev by James Westby ). diff -r 68bfc64028db -r b1442ebb4fcd fastimport/parser.py --- a/fastimport/parser.py Mon May 04 10:31:23 2009 -0400 +++ b/fastimport/parser.py Mon May 04 10:58:13 2009 -0400 @@ -437,7 +437,7 @@ next = self.input.readline() self.lineno += 1 if len(next) > 1 or next != "\n": - self.push_line(next) + self.push_line(next[:-1]) return result else: self.abort(errors.MissingSection, required_for, section)