# HG changeset patch # User Idan Kamara # Date 2011-06-24 16:44:58 # Node ID 99ace3cb7352db999ed46da08889b91418928b2b # Parent 712954a67be3f84527ded1c95008b549d02cba27 dispatch: set global options on the request repo.ui If the request has a repo, and global options such as --verbose are passed, we need to set those explicitly on the repo.ui. diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -592,18 +592,23 @@ def _dispatch(req): (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) atexit.register(print_time) + uis = set([ui, lui]) + + if req.repo: + uis.add(req.repo.ui) + for opt in ('verbose', 'debug', 'quiet', 'traceback'): val = bool(options[opt]) if val: - for ui_ in (ui, lui): + for ui_ in uis: ui_.setconfig('ui', opt, str(val)) if options['noninteractive']: - for ui_ in (ui, lui): + for ui_ in uis: ui_.setconfig('ui', 'interactive', 'off') if cmdoptions.get('insecure', False): - for ui_ in (ui, lui): + for ui_ in uis: ui_.setconfig('web', 'cacerts', '') if options['help']: