From: Ian Jackson Date: Fri, 28 Jun 2019 11:56:55 +0000 (+0100) Subject: dgit: Introduce $protovsn 5; part of tidying up after tag format X-Git-Tag: archive/debian/9.0~104 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=562f97c90181c851826e6c9125bc1e4e8cfa2f65;p=dgit.git 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 --- diff --git a/dgit b/dgit index e179e360..3b65a192 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'} // ''; $p eq 'new' or badproto \*RO, "tag format mismatch: $p vs. new";