# HG changeset patch # User Boris Feld # Date 2017-06-30 01:43:46 # Node ID bbb5687e5140869ef504720317147dc229da1248 # Parent c4a2db2cc0fbe473a7649b591c55e7696638e03e configitems: register the 'perf.stub' config diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -139,6 +139,16 @@ else: return func return decorator +try: + import registrar + configtable = {} + configitem = registrar.configitem(configtable) + configitem('perf', 'stub', + default=False, + ) +except (ImportError, AttributeError): + pass + def getlen(ui): if ui.configbool("perf", "stub"): return lambda x: 1