]> thyrsus.com Git - rcs-fast-import.git/commitdiff
This is a large improvement.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 11 Nov 2010 03:36:28 +0000 (22:36 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 11 Nov 2010 03:36:28 +0000 (22:36 -0500)
rcs-fast-import

index 8127b6d213fc52523cd28594be8e6adb98c72332..8469a93f947360e7b537b8e2de093628ebb6bdae 100755 (executable)
@@ -564,16 +564,16 @@ class RCS:
                     announce("copying %s to %s" % (os.path.relpath(copyfile), path))
                 if not dryrun:
                     shutil.copy(copyfile, path)
-            responsible = event.authors[0] or event.committer
-            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 += " " + " ".join(inargs)
-            with popen_or_die(command, "checkin", "w") as fp:
-                fp.write(event.comment)
+        responsible = event.authors[0] or event.committer
+        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 += " " + " ".join(inargs)
+        do_or_die(command, "checkin")
     def rename(self, source, target):
         "Perform RCS renames."
         # Dodgy, but since user is more likely to be