equal
deleted
inserted
replaced
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 |