Pierre-Yves David
f95a6cfc12
error: Add a hint argument to RepoError
...
This use the same mechanism than Abort. Except clause stay distinct
because RepoError add "!" at the end of the message.
2011-06-25 02:30:17 +02:00
Adrian Buehlmann
a8a418601f
introduce new RequirementError (issue2649)
...
This improves the misleading error message
$ hg identify
abort: there is no Mercurial repository here (.hg not found)!
to the more explicit
$ hg identify
abort: requirement 'fake' not supported!
for all commands in commands.optionalrepo, which includes the identify
and serve commands in particular.
This is for the case when a new entry in .hg/requires will be defined
in a future Mercurial release.
2011-02-18 20:25:25 +01:00
Benoit Boissinot
a13fa80461
Abort: add a hint argument, printed in the next line inside parenthesis
...
discovery was using a custom made message for this purpose
push now returns -1 after aborting, instead of 1 previously
2010-07-15 14:41:22 +02:00
Matt Mackall
476998d3a8
error: fix up test-hgrc
2010-06-04 23:04:31 -05:00
Matt Mackall
969c51b3cf
error: add new ParseError for various parsing errors
2010-06-04 20:57:26 -05:00
Matt Mackall
13c76ff349
error: change ParseError to CommandError
2010-06-04 20:19:53 -05:00
Matt Mackall
595d66f424
Update license to GPLv2+
2010-01-19 22:20:08 -06:00
Matt Mackall
c34b180a9c
Make distinct lookup error for localrepo.lookup
...
This allows clone/share to correctly distinguish lookup errors from
corruption errors and catch only the former.
2009-08-31 10:58:33 -05:00
Martin Geisler
2c8901a1b9
turn some comments back into module docstrings
2009-04-26 01:24:49 +02:00
Martin Geisler
8e4bc1e9ad
put license and copyright info into comment blocks
2009-04-26 01:13:08 +02:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Matt Mackall
e8b3de6bf8
ui: introduce new config parser
2009-04-23 15:40:10 -05:00
Matt Mackall
2cddde0437
move util.Abort to error.py
2009-04-03 13:20:52 -05:00
Matt Mackall
104a85dee5
error: move SignatureError
2009-01-12 13:51:43 -06:00
Matt Mackall
7f3bf9b19d
error: move SignalInterrupt
...
now derived from KeyboardInterrupt to simplify catches
2009-01-12 11:48:05 -06:00
Matt Mackall
e61d364b61
error: move UnknownCommand and AmbiguousCommand
2009-01-12 11:39:38 -06:00
Matt Mackall
534da54d07
error: move UnexpectedOutput (now ResponseError)
2009-01-12 11:28:28 -06:00
Matt Mackall
76c90d50e6
error: move lock errors
...
rename LockException to LockError
2009-01-12 11:09:14 -06:00
Matt Mackall
e0735a1762
error: move repo errors
...
rename NoCapability to CapabilityError
2009-01-12 10:42:31 -06:00
Matt Mackall
d3bf622cc2
error: move ParseError
2009-01-11 23:04:24 -06:00
Matt Mackall
d15d559b7c
errors: move revlog errors
...
- create error.py for exception classes to reduce demandloading
- move revlog exceptions to it
- change users to import error and drop revlog import if possible
2009-01-11 22:48:28 -06:00