]> thyrsus.com Git - rcs-fast-import.git/commitdiff
Another step towards a working copy op.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 13 Nov 2010 07:22:23 +0000 (02:22 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 13 Nov 2010 07:22:23 +0000 (02:22 -0500)
rcs-fast-import

index 2d28a0f64d736046f0cb95a551ff0c286e6254d7..0c0ec2b0953c17c27ddc6074bcfaf9ee003ca7b6 100755 (executable)
@@ -673,15 +673,13 @@ class RCS:
         do_or_die("ci -i -m'%s of %s' -l %s %s"
                   % (legend, source, uphere, RCS.master(target)),
                   legend.lower())
+        # FIXME: Must hack the date on the copty so RCS won't barf.
         RCS.record("C", source)
         RCS.record("T", target)
         os.remove(uphere)
     def rename(self, commit, source, target):
         "Perform RCS renames, carrying history with the rename."
-        shutil.copy(RCS.master(source), RCS.master(target))
-        RCS.record("R", source)
-        RCS.record("U", target)
-        # History is *not* removed from the source
+        self.copy(commit, source, target, legend="Rename")
         self.delete(commit, source, legend="Rename")
     def checkout(self, switch):
         "Post-conversion actions."