[Updated] D9312: errors: raise more specific errors when default remote not configured
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Nov 17 06:12:13 UTC 2020
Closed by commit rHG1bf1dcbc9950: errors: raise more specific errors when default remote not configured (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9312?vs=23482&id=23523
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9312/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9312
AFFECTED FILES
mercurial/commands.py
tests/test-default-push.t
CHANGE DETAILS
diff --git a/tests/test-default-push.t b/tests/test-default-push.t
--- a/tests/test-default-push.t
+++ b/tests/test-default-push.t
@@ -20,7 +20,7 @@
$ hg push --config paths.default=
abort: default repository not configured!
(see 'hg help config.paths')
- [255]
+ [30]
$ cd ..
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4903,7 +4903,7 @@
# 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 @@
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'"),
)
To: martinvonz, #hg-reviewers, mharbison72
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20201117/a413d90e/attachment-0002.html>
More information about the Mercurial-patches
mailing list