diff 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
line wrap: on
line diff
--- a/mercurial/changegroup.py	Wed Feb 20 13:38:16 2008 -0800
+++ b/mercurial/changegroup.py	Thu Feb 21 15:00:25 2008 +0100
@@ -53,6 +53,9 @@
     "HG10GZ": ("HG10GZ", lambda: zlib.compressobj()),
 }
 
+# hgweb uses this list to communicate it's preferred type
+bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN']
+
 def writebundle(cg, filename, bundletype):
     """Write a bundle file and return its filename.