]> thyrsus.com Git - src.git/commitdiff
Make the back end complain if tags collide.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 9 Nov 2014 17:32:35 +0000 (12:32 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 9 Nov 2014 17:32:35 +0000 (12:32 -0500)
The tag_helper logic should not allow this, but just in case...

Regression test passes.

src

diff --git a/src b/src
index 8965e609a861bce0a0467f38fce09dbb76fb6c6d..41ad3f084ec6d0ad11453af137261cc32739ad2a 100755 (executable)
--- a/src
+++ b/src
@@ -891,12 +891,12 @@ class RCS:
         do_or_die("rcs -n{0} {1}".format(tagname, arg))
     def set_tag(self, tagname, revision, _baserev, arg):
         "Set a specified tag."
-        do_or_die("rcs -N{0}:{1} {2}".format(tagname, revision, arg))
+        do_or_die("rcs -n{0}:{1} {2}".format(tagname, revision, arg))
     def delete_branch(self, branchname, arg):
         "Delete a specified branch."
         croak("branch deletion is not yet supported")
     def set_branch(self, branchname, revision, baserev, arg):
-        "Set a specified branch."
+        "Set the specified branch to be default, creating if required."
         croak("branch creation is not yet supported")
     def move(self, source, target):
         "Move a file and its history."