This is an archive of the discontinued Mercurial Phabricator instance.

discovery: prevent recomputing info about server and outgoing changesets
ClosedPublic

Authored by pulkit on Mar 17 2019, 11:48 AM.

Details

Summary

We already iterate over the outgoing.missing above and lookup repo for them. So
let's reuse info calculated at that time instead of recomputing that again.

Also we calculate the set of remotebranches by doing set(remotemap), so let's
reuse that again.

Upcoming patches will clean things a bit more.

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.Mar 17 2019, 11:48 AM
This revision was automatically updated to reflect the committed changes.