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
This commit is contained in:
Chirayu Desai
2023-05-27 05:14:32 +05:30
parent 57a063cff7
commit 11eaeaf039

View File

@@ -361,7 +361,7 @@ if __name__ == '__main__':
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: