Mercurial > hg
diff mercurial/exchange.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 | 03cc81a28228 |
children | 262c5cc126c1 |
line wrap: on
line diff
--- a/mercurial/exchange.py Mon Aug 25 18:35:39 2014 +0200 +++ b/mercurial/exchange.py Mon Aug 25 19:17:06 2014 +0200 @@ -465,7 +465,7 @@ evolve in the future.""" bundler = bundle2.bundle20(pushop.ui, bundle2.bundle2caps(pushop.remote)) # create reply capability - capsblob = bundle2.encodecaps(pushop.repo.bundle2caps) + capsblob = bundle2.encodecaps(bundle2.capabilities) bundler.newpart('b2x:replycaps', data=capsblob) replyhandlers = [] for partgenname in b2partsgenorder: @@ -922,7 +922,7 @@ def caps20to10(repo): """return a set with appropriate options to use bundle20 during getbundle""" caps = set(['HG2X']) - capsblob = bundle2.encodecaps(repo.bundle2caps) + capsblob = bundle2.encodecaps(bundle2.capabilities) caps.add('bundle2=' + urllib.quote(capsblob)) return caps