This is an archive of the discontinued Mercurial Phabricator instance.

largefiles: wrap heads command handler more directly
ClosedPublic

Authored by indygreg on Apr 7 2018, 1:53 AM.

Details

Summary

extensions.wrapfunction() is a more robust method for wrapping a
function, since it allows multiple wrappers.

While we're here, wrap the function registered with the command instead
of installing a new command handler.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Apr 7 2018, 1:53 AM
yuja accepted this revision.Apr 9 2018, 10:58 AM
This revision is now accepted and ready to land.Apr 9 2018, 10:58 AM
This revision was automatically updated to reflect the committed changes.