From 0f36eab20587b39314604decfa9f738130a19d0c Mon Sep 17 00:00:00 2001 Message-Id: <0f36eab20587b39314604decfa9f738130a19d0c.1747008764.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 19 Oct 2008 09:16:06 +0100 Subject: [PATCH] Fix "show" to allow multiple branch:patch arguments Organization: Straylight/Edgeware From: Catalin Marinas Ranges aren't allow to contain the branch:patch format but individual patches can be specified this way since they are treated as individual commits. Signed-off-by: Catalin Marinas --- stgit/commands/show.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stgit/commands/show.py b/stgit/commands/show.py index 9a1f48b..3887b73 100644 --- a/stgit/commands/show.py +++ b/stgit/commands/show.py @@ -52,8 +52,8 @@ def func(parser, options, args): elif len(args) == 0: patches = ['HEAD'] else: - if len(args) == 1 and args[0].find('..') == -1: - # single patch or commit id + if len(args) == 1 or args[0].find('..') == -1: + # single patch or one/more commit ids patches = args else: applied = crt_series.get_applied() -- [mdw]