repopick: don't bail on drafts
* When using an ssh gerrit instance (-g) it is perfectly
reasonable to pick a draft commit. Don't require force
picking (-f) in order to do so.
Change-Id: I420f566ee1bb1f0b0d2a2ef29d95e0545db70b89
diff --git a/build/tools/repopick.py b/build/tools/repopick.py
index cb14ae7..28088c6 100755
--- a/build/tools/repopick.py
+++ b/build/tools/repopick.py
@@ -298,7 +298,7 @@
for item in mergables:
args.quiet or print('Applying change number {0}...'.format(item['id']))
# Check if change is open and exit if it's not, unless -f is specified
- if (item['status'] != 'OPEN' and item['status'] != 'NEW') and not args.query:
+ if (item['status'] != 'OPEN' and item['status'] != 'NEW' and item['status'] != 'DRAFT') and not args.query:
if args.force:
print('!! Force-picking a closed change !!\n')
else: