From 93d5fb1f102d84372271ee85ff0859c91ac6262a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 13 Nov 2010 02:22:23 -0500 Subject: [PATCH] Another step towards a working copy op. --- rcs-fast-import | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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." -- 2.43.0