--- a/mercurial/dispatch.py Wed Jul 27 18:35:35 2011 -0500
+++ b/mercurial/dispatch.py Sat Jul 30 21:04:14 2011 +0300
@@ -608,11 +608,15 @@
for cfg in cfgs:
req.repo.ui.setconfig(*cfg)
- for opt in ('verbose', 'debug', 'quiet', 'traceback'):
- val = bool(options[opt])
- if val:
+ if options['verbose'] or options['debug'] or options['quiet']:
+ for opt in ('verbose', 'debug', 'quiet'):
+ val = str(bool(options[opt]))
for ui_ in uis:
- ui_.setconfig('ui', opt, str(val))
+ ui_.setconfig('ui', opt, val)
+
+ if options['traceback']:
+ for ui_ in uis:
+ ui_.setconfig('ui', 'traceback', 'on')
if options['noninteractive']:
for ui_ in uis: