Add parse_patches boundary in the delete.py file
authorCatalin Marinas <catalin.marinas@gmail.com>
Sat, 1 Nov 2008 10:52:27 +0000 (10:52 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Sat, 1 Nov 2008 10:52:27 +0000 (10:52 +0000)
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 <catalin.marinas@gmail.com>
stgit/commands/delete.py

index 015fb49..fdcb5c9 100644 (file)
@@ -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')