From: Catalin Marinas Date: Mon, 11 Jul 2005 17:45:40 +0000 (+0100) Subject: Allow local changes if the patch deleted is not current X-Git-Tag: v0.14.3~756 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/d08865a64841c43ce6730baf7078500233976d32?hp=c920531e512b1776d3698fd05755f8791b3be831 Allow local changes if the patch deleted is not current Signed-off-by: Catalin Marinas --- diff --git a/ChangeLog b/ChangeLog index 5b7e9d6..3b2fc75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * stgit/main.py (export): Add --template option to use a different file as the export template rather than the default one + (delete): Check for local changes only of the current patch is + removed 2005-07-09 Catalin Marinas diff --git a/stgit/main.py b/stgit/main.py index d93f2eb..ebbff64 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -363,9 +363,10 @@ def delete(parser, options, args): if len(args) != 1: parser.error('incorrect number of arguments') - __check_local_changes() - __check_conflicts() - __check_head_top_equal() + if args[0] == crt_series.get_current(): + __check_local_changes() + __check_conflicts() + __check_head_top_equal() crt_series.delete_patch(args[0]) print 'Patch "%s" successfully deleted' % args[0]