]> thyrsus.com Git - rcs-fast-import.git/commitdiff
Fix handling of Passthrough events.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 16 Nov 2010 19:14:56 +0000 (14:14 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 16 Nov 2010 19:14:56 +0000 (14:14 -0500)
rcs-fast-import

index 5258d3908bb35673cae4c2d6b1e249bddd207f83..2f0dd5768ee1c717c1e044e77f5b200b8d764bfa 100755 (executable)
@@ -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