aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2013-10-24 11:19:02 -0400
committerGravatar David Bremner <david@tethera.net>2013-11-08 20:13:58 -0400
commita24cd45568872d49c05bdd6193876cce6f01fe80 (patch)
tree969f42e3ed3e1b0eb099ce1d019fcd338f1e2685 /notmuch.c
parentec630c663597cc3d6f4f98f9ec4ec17a6c7b5bbc (diff)
cli: Separate current and deprecated format version
Previously, the CLI would print a deprecation warning if a client requested any format version other than the current one. However, if we add fields that are backwards-compatible, but want clients to be able to depend on, we need to bump the version, but that doesn't make the older version deprecated. Hence, separate out the "minimum active" version and only print a warning for requests below this version number.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch.c b/notmuch.c
index 8d303a14..54f46c68 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -127,7 +127,7 @@ by the notmuch CLI (it requires at least version %d). You may need to\n\
upgrade your notmuch front-end.\n",
notmuch_format_version, NOTMUCH_FORMAT_MIN);
exit (NOTMUCH_EXIT_FORMAT_TOO_OLD);
- } else if (notmuch_format_version != NOTMUCH_FORMAT_CUR) {
+ } else if (notmuch_format_version < NOTMUCH_FORMAT_MIN_ACTIVE) {
/* Warn about old version requests so compatibility issues are
* less likely when we drop support for a deprecated format
* versions. */