[Request] [+- ] D9163: errors: move UnknownCommand and AmbiguousCommand near CommandError
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Oct 7 06:10:34 UTC 2020
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
They seem closely related.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D9163
AFFECTED FILES
mercurial/error.py
CHANGE DETAILS
diff --git a/mercurial/error.py b/mercurial/error.py
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -103,6 +103,18 @@
__bytes__ = _tobytes
+class UnknownCommand(Exception):
+ """Exception raised if command is not in the command table."""
+
+ __bytes__ = _tobytes
+
+
+class AmbiguousCommand(Exception):
+ """Exception raised if command shortcut matches more than one command."""
+
+ __bytes__ = _tobytes
+
+
class InterventionRequired(Hint, Exception):
"""Exception raised when a command requires human intervention."""
@@ -290,18 +302,6 @@
__bytes__ = _tobytes
-class UnknownCommand(Exception):
- """Exception raised if command is not in the command table."""
-
- __bytes__ = _tobytes
-
-
-class AmbiguousCommand(Exception):
- """Exception raised if command shortcut matches more than one command."""
-
- __bytes__ = _tobytes
-
-
# derived from KeyboardInterrupt to simplify some breakout code
class SignalInterrupt(KeyboardInterrupt):
"""Exception raised on SIGTERM and SIGHUP."""
To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20201007/a8150259/attachment.html>
More information about the Mercurial-patches
mailing list