repopick: open changes are either NEW or OPEN, not just OPEN
Gerrit's API is terrible. I believe it was written by monkeys.
Change-Id: Idb39a357c241ce7923549a3d217f7ee632326e92
diff --git a/tools/repopick.py b/tools/repopick.py
index b0742c8..296fec8 100755
--- a/tools/repopick.py
+++ b/tools/repopick.py
@@ -250,7 +250,7 @@
for item in mergables:
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 not args.query:
+ if (item['status'] != 'OPEN' and item['status'] != 'NEW') and not args.query:
if args.force:
print('!! Force-picking a closed change !!\n')
else: