Fix draft deletion related help messages and docstrings
Gerrit revisions can be drafts. When all revisions are drafts, the whole
change/CL is considered a draft. The DeleteDraft action is mixing up the
two. Do not change the action name since it would break backward
compatibility but correct the help message and docstrings.
BUG=none
TEST=run "gerrit help"
Change-Id: I6aa9d5bda29c190f984d2bbce444735b87a8af2b
Reviewed-on: https://chromium-review.googlesource.com/304377
Commit-Ready: Marc Herbert <marc.herbert@intel.com>
Tested-by: Marc Herbert <marc.herbert@intel.com>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
diff --git a/scripts/gerrit.py b/scripts/gerrit.py
index deefe4d..0f66bea 100644
--- a/scripts/gerrit.py
+++ b/scripts/gerrit.py
@@ -417,7 +417,7 @@
def UserActDeletedraft(opts, *args):
- """Delete draft patch set <n> [n ...]"""
+ """Delete draft CL <n> [n ...]"""
for arg in args:
helper, cl = GetGerrit(opts, arg)
helper.DeleteDraft(cl, dryrun=opts.dryrun)