This is an archive of the discontinued Mercurial Phabricator instance.

logtoprocess: update commandfinish options arguments
ClosedPublic

Authored by lothiraldan on Nov 16 2018, 8:33 AM.

Details

Summary

d2c997b8001f changed the logtoprocess API with the effect of not exposing the
positional arguments to the logtoprocess scripts anymore.

We have some scripts that use the duration and return code of the
"commandfinish" event to monitor hg calls. Update the logging of the
"commandfinish" to expose those values as options argument, which will be
accessible as OPT_RETURN_CODE and OPT_DURATION in logtoprocess arguments.

The code has been formatted with Black.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

lothiraldan created this revision.Nov 16 2018, 8:33 AM
This revision was automatically updated to reflect the committed changes.