From ca76dc5e788f12b6446f29570528c99f3f4bdc32 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 24 Jul 2008 03:05:34 +0200 Subject: [PATCH] stg goto: Handle hidden patches more gracefully MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Organization: Straylight/Edgeware From: Karl Hasselström It wasn't broken before, exactly, but it did claim that hidden patches didn't exist, which is not nice to the user. Signed-off-by: Karl Hasselström --- stgit/commands/goto.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stgit/commands/goto.py b/stgit/commands/goto.py index b347920..99ae6c0 100644 --- a/stgit/commands/goto.py +++ b/stgit/commands/goto.py @@ -46,6 +46,8 @@ def func(parser, options, args): trans.push_patch(pn, iw) except transaction.TransactionHalted: pass + elif patch in trans.hidden: + raise common.CmdException('Cannot goto a hidden patch') else: raise common.CmdException('Patch "%s" does not exist' % patch) return trans.run(iw) -- [mdw]