mercurial/repair.py
branchstable
changeset 27930 7cbb3a01fa38
parent 27875 add2ba16430e
child 28007 fb92927f9775
equal deleted inserted replaced
27929:3b2ac2115464 27930:7cbb3a01fa38
    20     util,
    20     util,
    21 )
    21 )
    22 
    22 
    23 def _bundle(repo, bases, heads, node, suffix, compress=True):
    23 def _bundle(repo, bases, heads, node, suffix, compress=True):
    24     """create a bundle with the specified revisions as a backup"""
    24     """create a bundle with the specified revisions as a backup"""
    25     cgversion = '01'
    25     cgversion = changegroup.safeversion(repo)
    26     if 'generaldelta' in repo.requirements:
       
    27         cgversion = '02'
       
    28 
    26 
    29     cg = changegroup.changegroupsubset(repo, bases, heads, 'strip',
    27     cg = changegroup.changegroupsubset(repo, bases, heads, 'strip',
    30                                        version=cgversion)
    28                                        version=cgversion)
    31     backupdir = "strip-backup"
    29     backupdir = "strip-backup"
    32     vfs = repo.vfs
    30     vfs = repo.vfs