diff options
author | Jani Nikula <jani@nikula.org> | 2012-03-27 00:04:09 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-03-30 21:20:36 -0300 |
commit | 8e3ff8fb03dc647f1daea4665c35a2214473ced8 (patch) | |
tree | ae0e9a54e6765e4783f0535127dff044a8d73052 /test | |
parent | 918b80359727de2dd87f26a252de8faee2eff78c (diff) |
cli: refactor "notmuch tag" data structures for tagging operations
To simplify code, keep all tagging operations in a single array
instead of separate add and remove arrays. Apply tag changes in the
order specified on the command line, instead of first removing and
then adding the tags.
This results in a minor functional change: If a tag is both added and
removed, the last specified operation is now used. Previously the tag
was always added. Change the relevant test to reflect the new
behaviour.
Signed-off-by: Jani Nikula <jani@nikula.org>
Diffstat (limited to 'test')
-rwxr-xr-x | test/tagging | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tagging b/test/tagging index 3acf1bc0..e4782ed4 100755 --- a/test/tagging +++ b/test/tagging @@ -43,7 +43,7 @@ notmuch tag +tag4 -tag4 One notmuch tag -tag4 +tag4 Two output=$(notmuch search \* | notmuch_search_sanitize) test_expect_equal "$output" "\ -thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (:\" inbox tag1 tag4 unread) +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (:\" inbox tag1 unread) thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag4 unread)" test_done |