From: Catalin Marinas Date: Mon, 24 Mar 2008 10:19:28 +0000 (+0000) Subject: Add a boundary to parse_patches in pick.py X-Git-Tag: v0.14.2~12 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/896afcc92d6dc5772b090e0e299d82e2c80a577d?ds=inline Add a boundary to parse_patches in pick.py 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 --- diff --git a/stgit/commands/pick.py b/stgit/commands/pick.py index b78ebf8..44cf984 100644 --- a/stgit/commands/pick.py +++ b/stgit/commands/pick.py @@ -166,7 +166,7 @@ def func(parser, options, args): 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: