Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundle2.py @ 22341:2d16b39601b5
obsmarker: move bundle2caps from the localrepo class to the bundle2 module
The localrepo path was quicker, easier, more seductive. We'll soon add a
function in another changeset to alter the capabilities.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 25 Aug 2014 19:17:06 +0200 |
parents | 394a17de6a2d |
children | 262c5cc126c1 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Mon Aug 25 18:35:39 2014 +0200 +++ b/mercurial/bundle2.py Mon Aug 25 19:17:06 2014 +0200 @@ -775,6 +775,12 @@ self.consumed = True return data +capabilities = {'HG2X': (), + 'b2x:listkeys': (), + 'b2x:pushkey': (), + 'b2x:changegroup': (), + } + def bundle2caps(remote): """return the bundlecapabilities of a peer as dict""" raw = remote.capable('bundle2-exp')