Mercurial > hg
comparison mercurial/treediscovery.py @ 24650:b83a8f512a80
exchange: introduce a '_canusebundle2' function
This function refactors the logic that decides to use 'bundle2' during an
exchange (pull/push). This will help being consistent while transitioning from
the experimental protocol to the final frozen version.
I do not expect this function to survive on the long run when using 'bundle2'
will become a simple capability check.
This is also necessary to allow HG2Y support in an extension to ease transition
of companies using the experimental protocol in production (yeah...). Such
extension will be able to wrap this function to use the experimental protocol in
some case.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 06 Apr 2015 18:31:59 -0700 |
parents | d2704c48f417 |
children | 0ca8410ea345 |
comparison
equal
deleted
inserted
replaced
24649:2d15c59a001b | 24650:b83a8f512a80 |
---|