changeset 28:b1442ebb4fcd

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 <jw+debian@jameswestby.net>).
author Greg Ward <greg-hg@gerg.ca>
date Mon, 04 May 2009 10:58:13 -0400
parents 68bfc64028db
children 3820c7a49627
files fastimport/parser.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)