From 11eaeaf039a614be76084b17003a9d059870529c Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Sat, 27 May 2023 05:14:32 +0530 Subject: [PATCH] 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 --- build/tools/repopick.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tools/repopick.py b/build/tools/repopick.py index aeffa2f6..dcf4a8ec 100755 --- a/build/tools/repopick.py +++ b/build/tools/repopick.py @@ -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: