##// END OF EJS Templates
getbundle: add support for 'bookmarks' boolean argument...
Boris Feld -
r35268:cb4dcd7f default
parent child Browse files
Show More
@@ -1755,6 +1755,19 b' def _getbundlechangegrouppart(bundler, r'
1755 if 'treemanifest' in repo.requirements:
1755 if 'treemanifest' in repo.requirements:
1756 part.addparam('treemanifest', '1')
1756 part.addparam('treemanifest', '1')
1757
1757
1758 @getbundle2partsgenerator('bookmarks')
1759 def _getbundlebookmarkpart(bundler, repo, source, bundlecaps=None,
1760 b2caps=None, **kwargs):
1761 """add a bookmark part to the requested bundle"""
1762 if not kwargs.get('bookmarks', False):
1763 return
1764 if 'bookmarks' not in b2caps:
1765 raise ValueError(_('no common bookmarks exchange method'))
1766 books = bookmod.listbinbookmarks(repo)
1767 data = bookmod.binaryencode(books)
1768 if data:
1769 bundler.newpart('bookmarks', data=data)
1770
1758 @getbundle2partsgenerator('listkeys')
1771 @getbundle2partsgenerator('listkeys')
1759 def _getbundlelistkeysparts(bundler, repo, source, bundlecaps=None,
1772 def _getbundlelistkeysparts(bundler, repo, source, bundlecaps=None,
1760 b2caps=None, **kwargs):
1773 b2caps=None, **kwargs):
@@ -731,6 +731,8 b' cg'
731 cbattempted
731 cbattempted
732 Boolean indicating whether the client attempted to use the *clone bundles*
732 Boolean indicating whether the client attempted to use the *clone bundles*
733 feature before performing this request.
733 feature before performing this request.
734 bookmarks
735 Boolean indicating whether bookmark data is requested.
734 phases
736 phases
735 Boolean indicating whether phases data is requested.
737 Boolean indicating whether phases data is requested.
736
738
@@ -205,6 +205,7 b' def encodebatchcmds(req):'
205 # :scsv: list of comma-separated values return as set
205 # :scsv: list of comma-separated values return as set
206 # :plain: string with no transformation needed.
206 # :plain: string with no transformation needed.
207 gboptsmap = {'heads': 'nodes',
207 gboptsmap = {'heads': 'nodes',
208 'bookmarks': 'boolean',
208 'common': 'nodes',
209 'common': 'nodes',
209 'obsmarkers': 'boolean',
210 'obsmarkers': 'boolean',
210 'phases': 'boolean',
211 'phases': 'boolean',
General Comments 0
You need to be logged in to leave comments. Login now