sapling/hgext3rd/fastannotate
Durham Goode 55f677869b remotefilelog: use a connection pool instead of a long running connection
Summary:
Previously remotefilelog would open a connection and leave the getfiles command
running on that connection, so it didn't have to reopen the ssh connection each
time. We want to reuse this ssh connection for treemanifest and fastannotate, so
let's switch it to a pool model where the connection is kept open but the
getfiles command is not left open.

If an exception happens while the connection is out of the pool, it is discarded
instead of being added back to the pool.

Test Plan:
Ran the tests. The fastannotate tests changed to reflect the new way
the connectionpool allows use.

Reviewers: quark, #mercurial, mitrandir

Reviewed By: mitrandir

Subscribers: mitrandir, medson, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D5280323

Signature: t1:5280323:1497975420:e3ae1ee854a1afc90816502543a19ff36f59b497
2017-06-20 11:08:15 -07:00
..
__init__.py fastannotate: move to hgext3rd 2017-05-23 11:47:22 -07:00
commands.py fastannotate: move to hgext3rd 2017-05-23 11:47:22 -07:00
context.py fastannotate: move to hgext3rd 2017-05-23 11:47:22 -07:00
error.py fastannotate: move to hgext3rd 2017-05-23 11:47:22 -07:00
formatter.py fastannotate: move to hgext3rd 2017-05-23 11:47:22 -07:00
protocol.py remotefilelog: use a connection pool instead of a long running connection 2017-06-20 11:08:15 -07:00
revmap.py fastannotate: move to hgext3rd 2017-05-23 11:47:22 -07:00
support.py annotate: use keyword arguments for skiprevs and diffopts 2017-06-01 08:58:00 -07:00