chiark / gitweb /
Better error message for inappropriate multi-suite
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 02:38:33 +0000 (02:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 03:00:35 +0000 (03:00 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit
tests/tests/multisuite

diff --git a/dgit b/dgit
index bd9dd39..74de9af 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1010,6 +1010,8 @@ our %rmad;
 
 sub archive_query ($;@) {
     my ($method) = shift @_;
+    fail "this operation does not support multiple comma-separated suites"
+       if $isuite =~ m/,/;
     my $query = access_cfg('archive-query','RETURN-UNDEF');
     $query =~ s/^(\w+):// or badcfg "invalid archive-query method \`$query'";
     my $proto = $1;
index 01585f6..0a580be 100755 (executable)
@@ -38,6 +38,10 @@ cd $p.clone
 
 multi-good
 
+t-commit bogus 3.0 stable,unstable
+t-expect-fail "does not support multiple" \
+t-dgit -wgf build
+
 cd ..
 
 t-dgit clone --no-rm-on-error $p stable ./$p.pull