comparison mercurial/changegroup.py @ 6152:c050548307a4

hgweb: use bundletypes from mercurial.changegroup
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 21 Feb 2008 15:00:25 +0100
parents 0136d7f58982
children ef1c5a3b653d
comparison
equal deleted inserted replaced
6151:8bc4fe428103 6152:c050548307a4
50 "": ("", nocompress), 50 "": ("", nocompress),
51 "HG10UN": ("HG10UN", nocompress), 51 "HG10UN": ("HG10UN", nocompress),
52 "HG10BZ": ("HG10", lambda: bz2.BZ2Compressor()), 52 "HG10BZ": ("HG10", lambda: bz2.BZ2Compressor()),
53 "HG10GZ": ("HG10GZ", lambda: zlib.compressobj()), 53 "HG10GZ": ("HG10GZ", lambda: zlib.compressobj()),
54 } 54 }
55
56 # hgweb uses this list to communicate it's preferred type
57 bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN']
55 58
56 def writebundle(cg, filename, bundletype): 59 def writebundle(cg, filename, bundletype):
57 """Write a bundle file and return its filename. 60 """Write a bundle file and return its filename.
58 61
59 Existing files will not be overwritten. 62 Existing files will not be overwritten.