This is an archive of the discontinued Mercurial Phabricator instance.

profiling: add --no-profile to disable profiling enabled via config
ClosedPublic

Authored by spectral on Apr 19 2021, 6:32 PM.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

spectral created this revision.Apr 19 2021, 6:32 PM
marmoute added inline comments.
mercurial/dispatch.py
1066

Identify testing on boolean is not recommended. This should be elif req.earlyoptions[b'profile']

spectral added inline comments.Apr 20 2021, 1:22 PM
mercurial/dispatch.py
1066

If the user didn't specify --profile or --no-profile, then it's None here. Testing for an explicit False is intentional.

spectral marked an inline comment as done.Apr 21 2021, 4:18 PM

(marking comment as resolved, not sure what the exact policy is here :))

pulkit accepted this revision.Apr 28 2021, 6:39 AM
This revision is now accepted and ready to land.Apr 28 2021, 6:39 AM