]> thyrsus.com Git - src.git/commitdiff
We now create and list branches correctly.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 11 Nov 2014 03:49:56 +0000 (22:49 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 11 Nov 2014 03:49:56 +0000 (22:49 -0500)
src

diff --git a/src b/src
index aef53d4bc8c471c359983bb2f7820268209d0a2b..947112f9798ae9c244549778b6192fcebcd2eff6 100755 (executable)
--- 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,