do_or_die("rcs -n{0}:{1} {2}".format(tagname, revision, arg))
def delete_branch(self, branchname, arg):
"Delete a specified branch."
+ # From rcs(1): -orange deletes ("outdates") the revisions
+ # given by range. A range consisting of a single revision
+ # number means that revision. A range consisting of a branch
+ # number means the latest revision on that branch. A range of
+ # the form rev1:rev2 means revisions rev1 to rev2 on the same
+ # branch, :rev means from the beginning of the branch
+ # containing rev up to and including rev, and rev: means from
+ # revision rev to the end of the branch containing rev. None
+ # of the outdated revisions can have branches or locks.
+ #
+ # What we need do is find the branch tip, then walk back to
+ # just after the first point where it joins another branch,
+ # then do a delete to end of branch from there.
croak("branch deletion is not yet supported")
+ #do_or_die("rcs -o{0}: {1}".format(revision, arg)
def set_branch(self, name, revision, metadata, arg):
"Set the specified branch to be default, creating it if required."
if name in metadata.symbols: