From 8b39a960afcf45cd4f5804ae62b6b0656bdb191d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 9 Jun 2020 11:24:47 +0200 Subject: Consistently complain early if no series file is found If no series file is found, let all quilt commands which need it complain about it immediately. This aligns the behavior of the "pop", "series" and "snapshot" commands with how all other commands behave. The "import", "new", "setup" and "upgrade" commands are not affected by this change, as they are legitimately called without a series file. A side effect of this change is that the "pop", "push", "top" and "next" commands will now return with error code 1 instead of 2 when called outside of a quilt-managed tree. Inspired by Martin Quinson. This fixes Debian bug #369908: https://bugs.debian.org/369908 Signed-off-by: Jean Delvare --- test/no-series.test | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/no-series.test') diff --git a/test/no-series.test b/test/no-series.test index 4ae52ff..c95ae8d 100644 --- a/test/no-series.test +++ b/test/no-series.test @@ -26,9 +26,9 @@ $ quilt next > No series file found $ quilt pop -> No patch removed +> No series file found $ quilt pop -v -> No patch removed +> No series file found $ quilt previous > No series file found @@ -42,9 +42,12 @@ $ quilt refresh > No series file found $ quilt series +> No series file found $ quilt series -v +> No series file found $ quilt snapshot +> No series file found $ quilt top > No series file found -- cgit