]> thyrsus.com Git - rcs-fast-import.git/commitdiff
Runs to completion.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 11 Nov 2010 12:55:34 +0000 (07:55 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 11 Nov 2010 12:55:34 +0000 (07:55 -0500)
rcs-fast-import

index 8466e9bd7ff80aad0fc1e62a7aa25882f19d7056..47117353be7ddbeeb2961f5b83c51e224cf9bd18 100755 (executable)
@@ -571,15 +571,13 @@ class RCS:
                 inargs.append(path)
                 inargs.append(RCS.master(path))
                 responsible = event.authors[0] or event.committer
-                quotified = ""
-                state = 0
                 command = "ci -l"
                 # If we were going to try to match committer or author
                 # email addresses to local names, this would be the place
                 # to do it.  Not a whole lot of point in trying, though.
                 #command += " -w%s" % responsible.email
                 command += " -d'%s'" % responsible.date.rfc822()
-                command += " -m%s" % `event.comment`
+                command += ' -m"%s"' % event.comment.replace('"', '\\"')
                 command += " " + " ".join(inargs)
                 do_or_die(command, "checkin")
     def rename(self, source, target):