diff options
author | Jean Delvare <jdelvare@suse.de> | 2020-06-09 11:24:47 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2020-06-09 11:24:47 +0200 |
commit | 8b39a960afcf45cd4f5804ae62b6b0656bdb191d (patch) | |
tree | e027c39cd464b88c763848570772b6c3db0ed32b /test/no-series.test | |
parent | bbbf4aaf170b63e5cc222ac2194290a4745026bb (diff) | |
download | quilt-8b39a960afcf45cd4f5804ae62b6b0656bdb191d.tar.gz |
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 <jdelvare@suse.de>
Diffstat (limited to 'test/no-series.test')
-rw-r--r-- | test/no-series.test | 7 |
1 files changed, 5 insertions, 2 deletions
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 |