From 896afcc92d6dc5772b090e0e299d82e2c80a577d Mon Sep 17 00:00:00 2001 Message-Id: <896afcc92d6dc5772b090e0e299d82e2c80a577d.1715207997.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 24 Mar 2008 10:19:28 +0000 Subject: [PATCH] Add a boundary to parse_patches in pick.py Organization: Straylight/Edgeware From: Catalin Marinas 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 --- stgit/commands/pick.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- [mdw]