do_or_die(command, legend.lower())
RCS.record("D", path)
os.remove(path)
- def copy(self, source, target):
+ def copy(self, source, target, legend="Copy"):
"Perform RCS copies. Start the copy with no history."
uphere = os.path.basename(target)
- do_or_die("co %s" % RCS.master(source), "copy checkout")
+ do_or_die("co %s" % RCS.master(source), legend)
os.rename(source, uphere)
- do_or_die("ci -i -m'Copy of %s' -l %s %s"
- % (source, uphere, RCS.master(target)),
- "copy")
+ do_or_die("ci -i -m'%s of %s' -l %s %s"
+ % (legend, source, uphere, RCS.master(target)),
+ legend.lower())
RCS.record("C", source)
RCS.record("T", target)
os.remove(uphere)