branch | stable |
changeset 27930 | 7cbb3a01fa38 |
parent 27875 | add2ba16430e |
child 28007 | fb92927f9775 |
--- a/mercurial/repair.py Tue Jan 19 15:32:32 2016 -0800 +++ b/mercurial/repair.py Tue Jan 19 15:38:24 2016 -0800 @@ -22,9 +22,7 @@ def _bundle(repo, bases, heads, node, suffix, compress=True): """create a bundle with the specified revisions as a backup""" - cgversion = '01' - if 'generaldelta' in repo.requirements: - cgversion = '02' + cgversion = changegroup.safeversion(repo) cg = changegroup.changegroupsubset(repo, bases, heads, 'strip', version=cgversion)