Mercurial > public > mercurial-scm > hg
diff mercurial/bundle2.py @ 37842:326b174c6a47 stable
bundle2: mark the bundle2 part as advisory (issue5872)
It blocks old clients to read bundle including this part.
Differential Revision: https://phab.mercurial-scm.org/D3481
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 08 May 2018 14:17:46 -0700 |
parents | 684a6a261f30 |
children | d474b3b44d4f |
line wrap: on
line diff
--- a/mercurial/bundle2.py Tue May 08 11:39:38 2018 +0200 +++ b/mercurial/bundle2.py Tue May 08 14:17:46 2018 -0700 @@ -1659,7 +1659,8 @@ for n in sorted(closed): yield n - bundler.newpart('cache:rev-branch-cache', data=generate()) + bundler.newpart('cache:rev-branch-cache', data=generate(), + mandatory=False) def _formatrequirementsspec(requirements): return urlreq.quote(','.join(sorted(requirements)))