summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-06-28 12:56:55 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-06-28 16:01:33 +0100
commit562f97c90181c851826e6c9125bc1e4e8cfa2f65 (patch)
treeef43e22f856fbee665b66304de2051c092805140
parent1523ee812507d8d3f90136d7062c995ed2e6108f (diff)
dgit: Introduce $protovsn 5; part of tidying up after tag format
This drops the tagformat param; the semantics are as if `new' were specified. Eventually, when we can drop support for $protovsn 4, all traces of this parameter can then be gone. No overall functional change. No immediate compatibility implications. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit8
1 files changed, 4 insertions, 4 deletions
diff --git a/dgit b/dgit
index e179e36..3b65a19 100755
--- a/dgit
+++ b/dgit
@@ -53,7 +53,7 @@ use Debian::Dgit;
our $our_version = 'UNRELEASED'; ###substituted###
our $absurdity = undef; ###substituted###
-our @rpushprotovsn_support = qw(4); # 4 is new tag format
+our @rpushprotovsn_support = qw(4 5); # 5 drops tag format specification
our $protovsn;
our $cmd;
@@ -465,7 +465,7 @@ sub branch_is_gdr ($) {
#
# > param head DGIT-VIEW-HEAD
# > param csuite SUITE
-# > param tagformat new # $protovsn >= 4
+# > param tagformat new # $protovsn == 4
# > param maint-view MAINT-VIEW-HEAD
#
# > param buildinfo-filename P_V_X.buildinfo # zero or more times
@@ -4632,7 +4632,7 @@ ENDT
responder_send_command("param head $dgithead");
responder_send_command("param csuite $csuite");
responder_send_command("param isuite $isuite");
- responder_send_command("param tagformat new");
+ responder_send_command("param tagformat new"); # needed in $protovsn==4
if (defined $maintviewhead) {
responder_send_command("param maint-view $maintviewhead");
}
@@ -5211,7 +5211,7 @@ sub i_want_signed_tag {
my $maintview = $i_param{'maint-view'};
die if defined $maintview && $maintview =~ m/[^0-9a-f]/;
- if ($protovsn >= 4) {
+ if ($protovsn == 4) {
my $p = $i_param{'tagformat'} // '<undef>';
$p eq 'new'
or badproto \*RO, "tag format mismatch: $p vs. new";