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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user