From: Catalin Marinas Date: Mon, 24 Mar 2008 10:19:49 +0000 (+0000) Subject: Add a boundary to parse_patches in pick.py X-Git-Tag: v0.15-rc1~256 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/d3cb28cac16572d8a5d1813bcbbe9dca20b3f61d?hp=-c 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 --- d3cb28cac16572d8a5d1813bcbbe9dca20b3f61d diff --git a/stgit/commands/pick.py b/stgit/commands/pick.py index df4a1fe..c63982b 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: