This is an archive of the discontinued Mercurial Phabricator instance.

repo: don't look up context for tip node if it's not needed
ClosedPublic

Authored by martinvonz on Sep 27 2018, 12:59 PM.

Details

Summary

We were doing repo['tip'].node() or similar in a few places where
repo.changelog.tip() would be enough.

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

martinvonz created this revision.Sep 27 2018, 12:59 PM
This revision was automatically updated to reflect the committed changes.