By specifying 'stg pick -B aaa ..', stgit would pick both applied and unapplied patches. Simply set the boundary to len(applied) so that unapplied patches have to be picked explicitly.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
applied = remote_series.get_applied()
unapplied = remote_series.get_unapplied()
try:
- patches = parse_patches(args, applied + unapplied)
+ patches = parse_patches(args, applied + unapplied, len(applied))
commit_id = None
except CmdException:
if len(args) >= 1: