repopick: don't bail on drafts
* When using an ssh gerrit instance (-g) it is perfectly reasonable to pick a draft commit. Don't require force picking (-f) in order to do so. Change-Id: I420f566ee1bb1f0b0d2a2ef29d95e0545db70b89
This commit is contained in:
@@ -298,7 +298,7 @@ if __name__ == '__main__':
|
|||||||
for item in mergables:
|
for item in mergables:
|
||||||
args.quiet or print('Applying change number {0}...'.format(item['id']))
|
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
|
# Check if change is open and exit if it's not, unless -f is specified
|
||||||
if (item['status'] != 'OPEN' and item['status'] != 'NEW') and not args.query:
|
if (item['status'] != 'OPEN' and item['status'] != 'NEW' and item['status'] != 'DRAFT') and not args.query:
|
||||||
if args.force:
|
if args.force:
|
||||||
print('!! Force-picking a closed change !!\n')
|
print('!! Force-picking a closed change !!\n')
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user