X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/a05954efcf4fce744252ce2e1a650b78fa5788d6..ca76dc5e788f12b6446f29570528c99f3f4bdc32:/stgit/commands/goto.py 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)