This is an archive of the discontinued Mercurial Phabricator instance.

shallowutil: introduce a helper function isenabled()
ClosedPublic

Authored by pulkit on Oct 24 2018, 10:55 AM.

Details

Summary

This patch introduces a inenabled() function which will check whether
remotefilelog is enabled or not. The function is then also used at all the
places where check whether remotefilelog is enabled or not. The new function
makes code easy to read without need to understand what is the constant involved
and why we are checking repo.requirements.

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

pulkit created this revision.Oct 24 2018, 10:55 AM
durin42 accepted this revision.Nov 5 2018, 11:01 AM
This revision is now accepted and ready to land.Nov 5 2018, 11:01 AM
This revision was automatically updated to reflect the committed changes.