From 74255790ead15dc04b103803a7e3196b9b26d004 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Nov 2014 13:26:37 -0500 Subject: [PATCH] Document how to do branch deletes Regression test passes. We'll need a bit more infrastructure. --- src | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src b/src index 035cd3c..f78e342 100755 --- a/src +++ b/src @@ -1150,7 +1150,21 @@ class RCS: 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: -- 2.43.0