Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundle2.py @ 22342:262c5cc126c1
bundle2: introduce a `getrepocaps` to retrieve the bundle2 caps of a repo
This function lets extensions change the bundle2 capabilities of a repository.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 25 Aug 2014 19:21:47 +0200 |
parents | 2d16b39601b5 |
children | 76677a2c1cfd |
line wrap: on
line diff
--- a/mercurial/bundle2.py Mon Aug 25 19:17:06 2014 +0200 +++ b/mercurial/bundle2.py Mon Aug 25 19:21:47 2014 +0200 @@ -781,6 +781,14 @@ 'b2x:changegroup': (), } +def getrepocaps(repo): + """return the bundle2 capabilities for a given repo + + Exists to allow extensions (like evolution) to mutate the + capabilities. + """ + return capabilities + def bundle2caps(remote): """return the bundlecapabilities of a peer as dict""" raw = remote.capable('bundle2-exp')