This is an archive of the discontinued Mercurial Phabricator instance.

storageutil: extract filelog.cmp() to a standalone function
ClosedPublic

Authored by indygreg on Sep 28 2018, 8:18 PM.

Details

Summary

As part of implementing an alternate storage backend, I found myself
reimplementing this code.

With a little massaging, we can extract filelog.cmp() to a standalone
function.

As part of this, the call to revlog.cmp() was inlined (it is just a
2-line function).

I also tweaked some variable names to improve readability. I'll
further tweak names in a subsequent commit.

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.Sep 28 2018, 8:18 PM
This revision was automatically updated to reflect the committed changes.