# HG changeset patch # User Pierre-Yves David # Date 1676901316 -3600 # Node ID ec3631290eb7b611988a9df1312723834eefc11a # Parent 308aff0243aeaaa06426ebd5410ac4cc77c39001 contrib-perf: use `running_status` in `perf::status` This is the way. diff -r 308aff0243ae -r ec3631290eb7 contrib/perf.py --- a/contrib/perf.py Mon Feb 20 17:16:52 2023 +0100 +++ b/contrib/perf.py Mon Feb 20 14:55:16 2023 +0100 @@ -815,7 +815,12 @@ ) sum(map(bool, s)) - timer(status_dirstate) + if util.safehasattr(dirstate, 'running_status'): + with dirstate.running_status(repo): + timer(status_dirstate) + dirstate.invalidate() + else: + timer(status_dirstate) else: timer(lambda: sum(map(len, repo.status(unknown=opts[b'unknown'])))) fm.end()