view mercurial/__init__.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 9117c6561b0b
children 4374d819ccd5
line wrap: on
line source