From: Catalin Marinas Date: Sat, 1 Nov 2008 10:52:27 +0000 (+0000) Subject: Add parse_patches boundary in the delete.py file X-Git-Tag: v0.15-rc1~106 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/dc7f6b0708eef5f15e51b893ca35fd4d2d0ef686?ds=sidebyside;hp=d5214f56be8f4b573512439a0d4c909e4cbcbc21 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 --- 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')