From: Eric S. Raymond Date: Tue, 11 Nov 2014 03:49:56 +0000 (-0500) Subject: We now create and list branches correctly. X-Git-Tag: 0.5~31 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=4659a7ecc2e773fce89b9e878017442f09ea5108;p=src.git We now create and list branches correctly. --- 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,