# HG changeset patch # User Matt Harbison # Date 1526956915 14400 # Node ID ee96458afdb6edd333959cbf4eacb221ddc67b31 # Parent d8bd6a9c64a57402715a65cebb269b2adb370f48 githelp: cleanly abort if the `svn` command is unknown Previously, the warning was lost above the sea of KeyError stacktrace output. diff -r d8bd6a9c64a5 -r ee96458afdb6 hgext/githelp.py --- a/hgext/githelp.py Mon May 21 22:32:15 2018 -0400 +++ b/hgext/githelp.py Mon May 21 22:41:55 2018 -0400 @@ -963,7 +963,7 @@ raise error.Abort(_('missing svn command')) svncmd = args[0] if not svncmd in gitsvncommands: - ui.warn(_("error: unknown git svn command %s\n") % (svncmd)) + raise error.Abort(_('unknown git svn command "%s"') % (svncmd)) args = args[1:] return gitsvncommands[svncmd](ui, repo, *args, **kwargs)