Show More
@@ -38,13 +38,17 b' def _bundle(repo, bases, heads, node, su' | |||
|
38 | 38 | totalhash = util.sha1(''.join(allhashes)).hexdigest() |
|
39 | 39 | name = "%s/%s-%s-%s.hg" % (backupdir, short(node), totalhash[:8], suffix) |
|
40 | 40 | |
|
41 | comp = None | |
|
41 | 42 | if cgversion != '01': |
|
42 | 43 | bundletype = "HG20" |
|
44 | if compress: | |
|
45 | comp = 'BZ' | |
|
43 | 46 | elif compress: |
|
44 | 47 | bundletype = "HG10BZ" |
|
45 | 48 | else: |
|
46 | 49 | bundletype = "HG10UN" |
|
47 |
return changegroup.writebundle(repo.ui, cg, name, bundletype, vfs |
|
|
50 | return changegroup.writebundle(repo.ui, cg, name, bundletype, vfs, | |
|
51 | compression=comp) | |
|
48 | 52 | |
|
49 | 53 | def _collectfiles(repo, striprev): |
|
50 | 54 | """find out the filelogs affected by the strip""" |
@@ -107,7 +107,7 b' Test that strip bundle use bundle2' | |||
|
107 | 107 | 0 files updated, 0 files merged, 5 files removed, 0 files unresolved |
|
108 | 108 | saved backup bundle to $TESTTMP/aggressive/.hg/strip-backup/1c5d4dc9a8b8-6c68e60c-backup.hg (glob) |
|
109 | 109 | $ hg debugbundle .hg/strip-backup/* |
|
110 | Stream params: {} | |
|
110 | Stream params: {'Compression': 'BZ'} | |
|
111 | 111 | changegroup -- "{'version': '02'}" |
|
112 | 112 | 1c5d4dc9a8b8d6e1750966d343e94db665e7a1e9 |
|
113 | 113 |
General Comments 0
You need to be logged in to leave comments.
Login now