mercurial/hgweb/hgweb_mod.py
changeset 4267 b11a2fb59cf5
parent 4250 ca639faa38a2
child 4282 a1406a50ca83
equal deleted inserted replaced
4266:1b5c38e9d7aa 4267:b11a2fb59cf5
  1016                   or self.t("error", error="%r not found" % fname))
  1016                   or self.t("error", error="%r not found" % fname))
  1017 
  1017 
  1018     def do_capabilities(self, req):
  1018     def do_capabilities(self, req):
  1019         caps = ['lookup', 'changegroupsubset']
  1019         caps = ['lookup', 'changegroupsubset']
  1020         if self.configbool('server', 'uncompressed'):
  1020         if self.configbool('server', 'uncompressed'):
  1021             caps.append('stream=%d' % self.repo.revlogversion)
  1021             caps.append('stream=%d' % self.repo.changelog.version)
  1022         # XXX: make configurable and/or share code with do_unbundle:
  1022         # XXX: make configurable and/or share code with do_unbundle:
  1023         unbundleversions = ['HG10GZ', 'HG10BZ', 'HG10UN']
  1023         unbundleversions = ['HG10GZ', 'HG10BZ', 'HG10UN']
  1024         if unbundleversions:
  1024         if unbundleversions:
  1025             caps.append('unbundle=%s' % ','.join(unbundleversions))
  1025             caps.append('unbundle=%s' % ','.join(unbundleversions))
  1026         resp = ' '.join(caps)
  1026         resp = ' '.join(caps)