]> git.donarmstrong.com Git - debbugs.git/commitdiff
* the correct default operation is to add tags, not set them
authorDon Armstrong <don@donarmstrong.com>
Fri, 24 Jul 2009 10:29:27 +0000 (03:29 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 24 Jul 2009 10:29:27 +0000 (03:29 -0700)
scripts/service

index 3c3e472af03516c13a6a2da7381b8ee5302fc43b..44563b6d652416bb0000571187fda2a6f893e9bf 100755 (executable)
@@ -790,7 +790,6 @@ END
        # option to pass to set_tag (we use a hashref here to make it
        # more obvious what is happening)
        my @tag_operations;
-       my $alter_type = '=';
        my @badtags;
        for my $tag (@tags) {
            if ($tag =~ /^[=+-]$/) {
@@ -808,7 +807,7 @@ END
                elsif ($tag eq '+') {
                    push @tag_operations,
                        {tags => [],
-                        option => [add => 1]
+                        option => [add => 1],
                        };
                }
                next;
@@ -819,7 +818,7 @@ END
            }
            if (not @tag_operations) {
                @tag_operations = {tags => [],
-                                  option => []
+                                  option => [add => 1],
                                  };
            }
            push @{$tag_operations[-1]{tags}},$tag;