##// END OF EJS Templates
dispatch: catch ConfigError while constructing ui
Martin Geisler -
r9470:ba75830d default
parent child Browse files
Show More
@@ -24,6 +24,9 b' def dispatch(args):'
24 except util.Abort, inst:
24 except util.Abort, inst:
25 sys.stderr.write(_("abort: %s\n") % inst)
25 sys.stderr.write(_("abort: %s\n") % inst)
26 return -1
26 return -1
27 except error.ConfigError, inst:
28 sys.stderr.write(_("hg: %s\n") % inst)
29 return -1
27 return _runcatch(u, args)
30 return _runcatch(u, args)
28
31
29 def _runcatch(ui, args):
32 def _runcatch(ui, args):
@@ -16,3 +16,9 b' cd foobar'
16 cat .hg/hgrc |sed -e "s:$p:...:"
16 cat .hg/hgrc |sed -e "s:$p:...:"
17 hg paths |sed -e "s:$p:...:"
17 hg paths |sed -e "s:$p:...:"
18 hg showconfig |sed -e "s:$p:...:"
18 hg showconfig |sed -e "s:$p:...:"
19
20 # issue1829: wrong indentation
21 cd ..
22 echo '[foo]' >> $HGRCPATH
23 echo ' x = y' >> $HGRCPATH
24 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
@@ -10,3 +10,4 b' defaults.commit=-d "0 0"'
10 defaults.tag=-d "0 0"
10 defaults.tag=-d "0 0"
11 paths.default=.../foo%bar
11 paths.default=.../foo%bar
12 ui.slash=True
12 ui.slash=True
13 hg: config error at $HGRCPATH:8: ' x = y'
General Comments 0
You need to be logged in to leave comments. Login now