Show More
@@ -1755,6 +1755,19 b' def _getbundlechangegrouppart(bundler, r' | |||
|
1755 | 1755 | if 'treemanifest' in repo.requirements: |
|
1756 | 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 | 1771 | @getbundle2partsgenerator('listkeys') |
|
1759 | 1772 | def _getbundlelistkeysparts(bundler, repo, source, bundlecaps=None, |
|
1760 | 1773 | b2caps=None, **kwargs): |
@@ -731,6 +731,8 b' cg' | |||
|
731 | 731 | cbattempted |
|
732 | 732 | Boolean indicating whether the client attempted to use the *clone bundles* |
|
733 | 733 | feature before performing this request. |
|
734 | bookmarks | |
|
735 | Boolean indicating whether bookmark data is requested. | |
|
734 | 736 | phases |
|
735 | 737 | Boolean indicating whether phases data is requested. |
|
736 | 738 |
@@ -205,6 +205,7 b' def encodebatchcmds(req):' | |||
|
205 | 205 | # :scsv: list of comma-separated values return as set |
|
206 | 206 | # :plain: string with no transformation needed. |
|
207 | 207 | gboptsmap = {'heads': 'nodes', |
|
208 | 'bookmarks': 'boolean', | |
|
208 | 209 | 'common': 'nodes', |
|
209 | 210 | 'obsmarkers': 'boolean', |
|
210 | 211 | 'phases': 'boolean', |
General Comments 0
You need to be logged in to leave comments.
Login now