This is an archive of the discontinued Mercurial Phabricator instance.

branchcache: store the maximum tip in a variable inside for loop
ClosedPublic

Authored by pulkit on Apr 26 2019, 7:22 PM.

Details

Summary

Instead of assigning self.tiprev multiple times in the for loop, and calling
cl.node() on it, let's store that in a temporary variable and assign it in the
end of loop.

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.