Show More
@@ -12,6 +12,11 formatteropts = commands.formatteropts | |||||
12 | cmdtable = {} |
|
12 | cmdtable = {} | |
13 | command = cmdutil.command(cmdtable) |
|
13 | command = cmdutil.command(cmdtable) | |
14 |
|
14 | |||
|
15 | def getlen(ui): | |||
|
16 | if ui.configbool("perf", "stub"): | |||
|
17 | return lambda x: 1 | |||
|
18 | return len | |||
|
19 | ||||
15 | def gettimer(ui, opts=None): |
|
20 | def gettimer(ui, opts=None): | |
16 | """return a timer function and formatter: (timer, formatter) |
|
21 | """return a timer function and formatter: (timer, formatter) | |
17 |
|
22 |
General Comments 0
You need to be logged in to leave comments.
Login now