comparison mercurial/changegroup.py @ 14060:aaa9a5989405

bundle: more comments about the different header types, remove useless if
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 30 Apr 2011 14:22:03 +0200
parents d69c9510d648
children bd1cbfe5db5c
comparison
equal deleted inserted replaced
14059:c0e29e10b9ef 14060:aaa9a5989405
41 return x 41 return x
42 def flush(self): 42 def flush(self):
43 return "" 43 return ""
44 44
45 bundletypes = { 45 bundletypes = {
46 "": ("", nocompress), 46 "": ("", nocompress), # only when using unbundle on ssh and old http servers
47 # since the unification ssh accepts a header but there
48 # is no capability signaling it.
47 "HG10UN": ("HG10UN", nocompress), 49 "HG10UN": ("HG10UN", nocompress),
48 "HG10BZ": ("HG10", lambda: bz2.BZ2Compressor()), 50 "HG10BZ": ("HG10", lambda: bz2.BZ2Compressor()),
49 "HG10GZ": ("HG10GZ", lambda: zlib.compressobj()), 51 "HG10GZ": ("HG10GZ", lambda: zlib.compressobj()),
50 } 52 }
51 53