mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
3303b6aab4
Currently the validate command in chgserver expects config can be loaded without issues but the config can be broken and chg will print a stacktrace instead of the parsing error, if a chg server is already running. This patch adds a handler for ParseError in validate and a new instruction "exit" to make the client exit without abortmsg. A test is also added to make sure it will behave as expected.
13 lines
162 B
Perl
13 lines
162 B
Perl
init repo
|
|
|
|
$ hg init foo
|
|
$ cd foo
|
|
|
|
ill-formed config
|
|
|
|
$ hg status
|
|
$ echo '=brokenconfig' >> $HGRCPATH
|
|
$ hg status
|
|
hg: parse error at * (glob)
|
|
[255]
|