chiark / gitweb /
default config: Switch to new archive/ tag format
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 Oct 2016 10:16:36 +0000 (11:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 Oct 2016 18:47:36 +0000 (19:47 +0100)
Even in non-split-brain mode.
Also change the test suite to expect this.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit
tests/lib

index 55433891db33bb7119a0c968d648581f93a5cd42..75515ee2577ea771e7f492228151f2289e045994 100644 (file)
@@ -4,6 +4,8 @@ dgit (2.5~) unstable; urgency=medium
   * Test suite bugfixes.
   * Test suite: Introduce setup/gnupg, to work around #841143
     and improve performance by amortising gnupg migration cost.
+  * Switch to new archive/ tag format by default, even in
+    non-split-brain mode.
 
  --
 
diff --git a/dgit b/dgit
index 7ca97c57f018f5b59df7ca92aa6868f8fa8ee503..6cdf8d28a699070b84eb0cf1fca283f635ff2f23 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -551,7 +551,7 @@ our %defcfg = ('dgit.default.distro' => 'debian',
               'dgit.default.ssh' => 'ssh',
               'dgit.default.archive-query' => 'madison:',
               'dgit.default.sshpsql-dbname' => 'service=projectb',
-              'dgit.default.dgit-tag-format' => 'old,new,maint',
+              'dgit.default.dgit-tag-format' => 'new,old,maint',
               # old means "repo server accepts pushes with old dgit tags"
               # new means "repo server accepts pushes with new dgit tags"
               # maint means "repo server accepts split brain pushes"
index 39763c6169430058237f1b3d5752b072866798f6..5d8e742dd371aba7cad2dd22ee8908ce93e630f8 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -65,7 +65,7 @@ incoming              = $tmp/incoming
 run_dinstall           = 0
 END
 
-: ${tagpfx:=test-dummy}
+: ${tagpfx:=archive/test-dummy}
 : ${suitespecs:=sid:unstable}
 
 t-git-next-date () {
@@ -825,7 +825,7 @@ t-drs () {
  t-git-config dgit-distro.test-dummy.git-url "ext::$troot/drs-git-ext %S "
  t-git-config dgit-distro.test-dummy.git-check true
  t-git-config dgit-distro.test-dummy.git-create true
- t-git-config dgit-distro.test-dummy.dgit-tag-format old,new
+ t-git-config dgit-distro.test-dummy.dgit-tag-format new,old,maint
        cp $troot/gnupg/{dd.gpg,dm.gpg,dm.txt} $tmp/.
        cp $troot/suites $tmp/.
        cp $troot/suites $tmp/suites-master
@@ -852,6 +852,7 @@ t-newtag () {
  t-git-config dgit-distro.test-dummy.dgit-tag-format new,maint
 }
 t-oldtag () {
+ export tagpfx=test-dummy
  t-git-config dgit-distro.test-dummy.dgit-tag-format old
 }