From: Eric S. Raymond Date: Tue, 16 Nov 2010 19:14:56 +0000 (-0500) Subject: Fix handling of Passthrough events. X-Git-Tag: 0.1~4 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=0bf244c6cd61e3c57c307b9068e0d87413e23bd9;p=rcs-fast-import.git Fix handling of Passthrough events. --- diff --git a/rcs-fast-import b/rcs-fast-import index 5258d39..2f0dd57 100755 --- a/rcs-fast-import +++ b/rcs-fast-import @@ -254,7 +254,7 @@ class Commit: class Passthrough: "Represents a passthrough line." def __init__(self, line): - self.text = text + self.text = line class FatalException: "Unrecoverable error." @@ -502,7 +502,7 @@ class Repository: baton.twirl() else: # Simply pass through any line we don't understand. - self.events.append(line) + self.events.append(Passthrough(line)) self.import_line = 0 self.readtime = time.time() # Resolve tags and branches