Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5d338e5 authored by invisiblek's avatar invisiblek Committed by Steve Kondik
Browse files

repopick: support specifying a range of commits to pick

* for example: repopick 12345-12350

Change-Id: I21dd0ef5f19d7b3899fa40ec4c28a0e9dba8a4df
parent 1e392d76
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -213,6 +213,19 @@ if args.topic:
    # Reverse the array as we want to pick the lowest one first
    args.change_number = reversed(changelist)

# Check for range of commits and rebuild array
changelist = []
for change in args.change_number:
    c=str(change)
    if '-' in c:
        templist = c.split('-')
        for i in range(int(templist[0]), int(templist[1]) + 1):
            changelist.append(str(i))
    else:
        changelist.append(c)

args.change_number = changelist

# Iterate through the requested change numbers
for change in args.change_number:
    if not args.quiet: