# than doing nothing.
os.rename(RCS.master(op.source), RCS.master(op.target))
def copy(self, source, target):
- "Perform RCS copies."
- # The copy will get the original's history.
- # There's a case that what we ought to do instead
- # is check out the tip rev and use it to initialize
- # a new master.
- shutil.copy(RCS.master(source), RCS.master(target))
+ "Perform RCS copies. Start the copy with no history"
+ uphere = os.path.basename(target)
+ do_or_die("co %s" % RCS.master(source), "copy checkout")
+ os.rename(source, here)
+ do_or_die("ci -i -m'Copy of %s' -l %s %s"
+ % (source, uphere, RCS.master(target)))
+ os.remove(uphere)
def checkout(self, switch):
"Post-conversion actions."
if switch != '-l':