scripts: gerrit: support - for removing people too
The - option is a bit more natural, and it isn't support as a prefix
with e-mail addresses in Gerrit.
BUG=None
TEST=CQ passes
Change-Id: Ie7ad930fd8e177f52abc7b4bc4b9bba0dd5eda7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4636584
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
diff --git a/scripts/gerrit_unittest.py b/scripts/gerrit_unittest.py
index 97506bb..6b18d71 100644
--- a/scripts/gerrit_unittest.py
+++ b/scripts/gerrit_unittest.py
@@ -44,6 +44,7 @@
(["a", "~a"], set(), {"a"}),
(["~a", "a"], {"a"}, set()),
(["a", "b", "c", "~d"], {"a", "b", "c"}, {"d"}),
+ (["-a", "a"], {"a"}, set()),
)