comparison mercurial/lock.py @ 29782:97bfc2e5fba5

dispatch: set profiling.enabled when profiling is enabled We do this for other global command arguments. We don't for --profile for reasons that are unknown to me. Probably because nobody has needed it. An upcoming patch will introduce a new consumer of the profiling code. It doesn't have access to command line arguments. So let's set the config option during argument processing. We also remove a check for "options['profile']" because it is now redundant.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 14 Aug 2016 16:35:58 -0700
parents 518c3e392f75
children dc9f086c7691
comparison
equal deleted inserted replaced
29781:2654a0aac80d 29782:97bfc2e5fba5