From: Eric S. Raymond Date: Sat, 13 Nov 2010 07:22:23 +0000 (-0500) Subject: Another step towards a working copy op. X-Git-Tag: 0.1~35 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=93d5fb1f102d84372271ee85ff0859c91ac6262a;p=rcs-fast-import.git Another step towards a working copy op. --- diff --git a/rcs-fast-import b/rcs-fast-import index 2d28a0f..0c0ec2b 100755 --- a/rcs-fast-import +++ b/rcs-fast-import @@ -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."