]> thyrsus.com Git - rcs-fast-import.git/commitdiff
Function name change.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 13 Nov 2010 19:34:44 +0000 (14:34 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 13 Nov 2010 19:34:44 +0000 (14:34 -0500)
rcs-fast-import

index 148998d77c3042706506138dad93ee850bc2c7af..55f5e208c49b7bf56587ce5e8dddac64726afbb8 100755 (executable)
@@ -637,7 +637,8 @@ class RCS:
                 except OSError, e:
                     raise FatalException("refusing to step on %s: %s." % (path, `e`))
         return rcsdir
-    def normal_checkin(self, commit, path, legend, state=None):
+    def checkin(self, commit, path, legend, state=None):
+        "Check in a new revision - also used to create new masters."
         if self.roundtrip:
             comment = event.email_out()
         else:
@@ -659,13 +660,13 @@ class RCS:
             raise FatalException("ignoring a submodule link %s", path)
         else:
             RCS.instantiate(path, copyfile)
-            self.normal_checkin(event, path, "modify")
+            self.checkin(event, path, "modify")
             RCS.record("M", path)
     def delete(self, commit, path, legend="delete"):
         "Mark a path deleted, but don't actually remove the master."
         RCS.instantiate(path)
         open(path, "w").close()
-        self.normal_checkin(commit, path, legend="delete", state="Deleted")
+        self.checkin(commit, path, legend="delete", state="Deleted")
         RCS.record("D", path)
     def copy(self, commit, source, target, legend="Copy"):
         "Perform RCS copies. Start the copy with no history."
@@ -674,7 +675,7 @@ class RCS:
         do_or_die("co %s" % RCS.master(source), legend)
         RCS.instantiate(target)
         loud_rename(source, target)
-        self.normal_checkin(commit, target, legend="copy")
+        self.checkin(commit, target, legend="copy")
         RCS.record("C", source)
         RCS.record("T", target)
     def rename(self, commit, source, target):
@@ -690,8 +691,6 @@ class RCS:
                       % (tag.name, tag.tagger.date.rfc822()))
             os.remove("ANNOTATED-TAGS")
             do_or_die("rcs -n'%s': %s" % (tag.name, " ".join(RCS.rcsfiles())))
-        if event.is_tip():
-            do_or_die("rcs -n'%s': %s" % (event.branch, " ".join(RCS.rcsfiles())))
     def checkout(self, switch):
         "Post-conversion actions."
         if switch != '-l':