except OSError, e:
raise FatalException("refusing to step on %s: %s." % (path, `e`))
return rcsdir
- def normal_checkin(self, commit, path, legend, state=None):
+ def checkin(self, commit, path, legend, state=None):
+ "Check in a new revision - also used to create new masters."
if self.roundtrip:
comment = event.email_out()
else:
raise FatalException("ignoring a submodule link %s", path)
else:
RCS.instantiate(path, copyfile)
- self.normal_checkin(event, path, "modify")
+ self.checkin(event, path, "modify")
RCS.record("M", path)
def delete(self, commit, path, legend="delete"):
"Mark a path deleted, but don't actually remove the master."
RCS.instantiate(path)
open(path, "w").close()
- self.normal_checkin(commit, path, legend="delete", state="Deleted")
+ self.checkin(commit, path, legend="delete", state="Deleted")
RCS.record("D", path)
def copy(self, commit, source, target, legend="Copy"):
"Perform RCS copies. Start the copy with no history."
do_or_die("co %s" % RCS.master(source), legend)
RCS.instantiate(target)
loud_rename(source, target)
- self.normal_checkin(commit, target, legend="copy")
+ self.checkin(commit, target, legend="copy")
RCS.record("C", source)
RCS.record("T", target)
def rename(self, commit, source, target):
% (tag.name, tag.tagger.date.rfc822()))
os.remove("ANNOTATED-TAGS")
do_or_die("rcs -n'%s': %s" % (tag.name, " ".join(RCS.rcsfiles())))
- if event.is_tip():
- do_or_die("rcs -n'%s': %s" % (event.branch, " ".join(RCS.rcsfiles())))
def checkout(self, switch):
"Post-conversion actions."
if switch != '-l':