From dc7f6b0708eef5f15e51b893ca35fd4d2d0ef686 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Sat, 1 Nov 2008 10:52:27 +0000 Subject: [PATCH] Add parse_patches boundary in the delete.py file Specifying open intervals like .. for the delete command would remove both applied and unapplied patches, which might not be the intended behaviour. Boundary crossing should be explicit. Signed-off-by: Catalin Marinas --- stgit/commands/delete.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stgit/commands/delete.py b/stgit/commands/delete.py index 015fb49..fdcb5c9 100644 --- a/stgit/commands/delete.py +++ b/stgit/commands/delete.py @@ -50,7 +50,8 @@ def func(parser, options, args): else: iw = stack.repository.default_iw if args: - patches = set(common.parse_patches(args, list(stack.patchorder.all))) + patches = set(common.parse_patches(args, list(stack.patchorder.all), + len(stack.patchorder.applied))) else: parser.error('No patches specified') -- 2.11.0