Mercurial > hg
comparison mercurial/dispatch.py @ 14618:110d75f0abb3
dispatch: fix for-loop variable name
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Tue, 14 Jun 2011 20:25:38 +0300 |
parents | 9fba795dd030 |
children | 406b6d7bdcb9 |
comparison
equal
deleted
inserted
replaced
14617:23f4e1e40988 | 14618:110d75f0abb3 |
---|---|
591 ui.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % | 591 ui.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % |
592 (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) | 592 (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) |
593 atexit.register(print_time) | 593 atexit.register(print_time) |
594 | 594 |
595 if options['verbose'] or options['debug'] or options['quiet']: | 595 if options['verbose'] or options['debug'] or options['quiet']: |
596 for ui in (ui, lui): | 596 for ui_ in (ui, lui): |
597 ui.setconfig('ui', 'verbose', str(bool(options['verbose']))) | 597 ui_.setconfig('ui', 'verbose', str(bool(options['verbose']))) |
598 ui.setconfig('ui', 'debug', str(bool(options['debug']))) | 598 ui_.setconfig('ui', 'debug', str(bool(options['debug']))) |
599 ui.setconfig('ui', 'quiet', str(bool(options['quiet']))) | 599 ui_.setconfig('ui', 'quiet', str(bool(options['quiet']))) |
600 if options['traceback']: | 600 if options['traceback']: |
601 for ui in (ui, lui): | 601 for ui_ in (ui, lui): |
602 ui.setconfig('ui', 'traceback', 'on') | 602 ui_.setconfig('ui', 'traceback', 'on') |
603 if options['noninteractive']: | 603 if options['noninteractive']: |
604 for ui in (ui, lui): | 604 for ui_ in (ui, lui): |
605 ui.setconfig('ui', 'interactive', 'off') | 605 ui_.setconfig('ui', 'interactive', 'off') |
606 | 606 |
607 if cmdoptions.get('insecure', False): | 607 if cmdoptions.get('insecure', False): |
608 for ui in (ui, lui): | 608 for ui_ in (ui, lui): |
609 ui.setconfig('web', 'cacerts', '') | 609 ui_.setconfig('web', 'cacerts', '') |
610 | 610 |
611 if options['help']: | 611 if options['help']: |
612 return commands.help_(ui, cmd, options['version']) | 612 return commands.help_(ui, cmd, options['version']) |
613 elif options['version']: | 613 elif options['version']: |
614 return commands.version_(ui) | 614 return commands.version_(ui) |