This instance will be upgraded to Heptapod 0.21.0rc3 on 2021-04-23 at 10:30 UTC+2 (a few minutes of down time)

Commit 15f71194 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk

errors: raise more specific errors when default remote not configured

Differential Revision: https://phab.mercurial-scm.org/D9312
parent bff719525815
......@@ -4903,7 +4903,7 @@ def outgoing(ui, repo, dest=None, **opts):
# style URLs, so don't overwrite dest.
path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
if not path:
raise error.Abort(
raise error.ConfigError(
_(b'default repository not configured!'),
hint=_(b"see 'hg help config.paths'"),
)
......@@ -5524,7 +5524,7 @@ def push(ui, repo, dest=None, **opts):
path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
if not path:
raise error.Abort(
raise error.ConfigError(
_(b'default repository not configured!'),
hint=_(b"see 'hg help config.paths'"),
)
......
......@@ -20,7 +20,7 @@ Push should provide a hint when both 'default' and 'default-push' not set:
$ hg push --config paths.default=
abort: default repository not configured!
(see 'hg help config.paths')
[255]
[30]
$ cd ..
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment