comparison tests/test-chg.t @ 28516:3bf2892f685f

chgserver: handle ParseError during validate 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.
author Jun Wu <quark@fb.com>
date Mon, 14 Mar 2016 12:52:35 +0000
parents
children 983353035cec
comparison
equal deleted inserted replaced
28515:491eabd0df79 28516:3bf2892f685f
1 init repo
2
3 $ hg init foo
4 $ cd foo
5
6 ill-formed config
7
8 $ hg status
9 $ echo '=brokenconfig' >> $HGRCPATH
10 $ hg status
11 hg: parse error at * (glob)
12 [255]