##// END OF EJS Templates
errors: raise more specific errors when default remote not configured...
Martin von Zweigbergk -
r46446:1bf1dcbc default
parent child Browse files
Show More
@@ -4903,7 +4903,7 b' def outgoing(ui, repo, dest=None, **opts'
4903 4903 # style URLs, so don't overwrite dest.
4904 4904 path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
4905 4905 if not path:
4906 raise error.Abort(
4906 raise error.ConfigError(
4907 4907 _(b'default repository not configured!'),
4908 4908 hint=_(b"see 'hg help config.paths'"),
4909 4909 )
@@ -5524,7 +5524,7 b' def push(ui, repo, dest=None, **opts):'
5524 5524
5525 5525 path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
5526 5526 if not path:
5527 raise error.Abort(
5527 raise error.ConfigError(
5528 5528 _(b'default repository not configured!'),
5529 5529 hint=_(b"see 'hg help config.paths'"),
5530 5530 )
@@ -20,7 +20,7 b" Push should provide a hint when both 'de"
20 20 $ hg push --config paths.default=
21 21 abort: default repository not configured!
22 22 (see 'hg help config.paths')
23 [255]
23 [30]
24 24
25 25 $ cd ..
26 26
General Comments 0
You need to be logged in to leave comments. Login now