From 4659a7ecc2e773fce89b9e878017442f09ea5108 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 10 Nov 2014 22:49:56 -0500 Subject: [PATCH] We now create and list branches correctly. --- src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src b/src index aef53d4..947112f 100755 --- a/src +++ b/src @@ -977,11 +977,11 @@ class RCS: baserev = metadata.current() newsib = len([item for item in metadata.revlist \ if branchfrom(item.revision, baserev)]) + newsib += 1 base = baserev + "." + str(newsib) sticky = baserev + ".0." + str(newsib) - #do_or_die("rcs -n{0}:{1} {2}".format(name, sticky, arg), loud=True) - #do_or_die("rcs -b%s %s" % (base, arg), loud=True) - croak("branch creation and selection is not yet supported") + do_or_die("rcs -n{0}:{1} {2}".format(name, sticky, arg), loud=True) + do_or_die("rcs -b%s %s" % (base, arg), loud=True) def move(self, source, target): "Move a file and its history." do_or_die("mv {0} {1} && mv {2} {3}".format(source, target, -- 2.43.0