repopick: Don't ignore change status for query mode (-Q)
* Why not just use force with it if you really want to
pick abandoned changes?
* Avoids surprises
Change-Id: I7420e1c37cc127d1f74539d5685bd9bf77be44c3
diff --git a/build/tools/repopick.py b/build/tools/repopick.py
index cfae856..2be3462 100755
--- a/build/tools/repopick.py
+++ b/build/tools/repopick.py
@@ -361,7 +361,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 item['status'] != 'DRAFT') and not args.query:
+ if (item['status'] != 'OPEN' and item['status'] != 'NEW' and item['status'] != 'DRAFT'):
if args.force:
print('!! Force-picking a closed change !!\n')
else: