This is an archive of the discontinued Mercurial Phabricator instance.

treemanifest: use connection pool for hg pull
ClosedPublic

Authored by durham on Nov 20 2017, 10:23 AM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGXe64038f89490: treemanifest: use connection pool for hg pull
Summary

Previously hg pull created it's own ssh connection, then the tree prefetch
created one as well. Let's change hg pull to use a connection from the pool when
possible, so it can be reused by treemanifest later.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durham created this revision.Nov 20 2017, 10:23 AM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 20 2017, 10:23 AM
quark accepted this revision.Nov 21 2017, 4:48 AM
quark added a subscriber: quark.
quark added inline comments.
treemanifest/__init__.py
1246

Maybe connection pool could take an argument group connections by their addresses.

This revision is now accepted and ready to land.Nov 21 2017, 4:48 AM
durham added inline comments.Nov 21 2017, 9:52 AM
treemanifest/__init__.py
1246

It already does for the remote path/uri, but it doesn't group by ssh or remotecmd.

This revision was automatically updated to reflect the committed changes.