This is an archive of the discontinued Mercurial Phabricator instance.

revlog: refactor chain variable
ClosedPublic

Authored by durham on Sep 13 2017, 1:49 PM.

Details

Summary

Previously the addgroup loop would set chain to be the result of
self._addrevision(node,...). Since _addrevision now always returns the passed in
node, we can drop that behavior and just always set chain = node in the loop.

This will be useful in a future patch where we refactor the cg.deltachunk logic
to another function and therefore chain disappears entirely from this function.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durham created this revision.Sep 13 2017, 1:49 PM
This revision was automatically updated to reflect the committed changes.