##// END OF EJS Templates
hgweb_mod.archive(): Use 'key' instead of builtin 'id'.
Thomas Arendsen Hein -
r4669:96e096fe default
parent child Browse files
Show More
@@ -619,11 +619,11 b' class hgweb(object):'
619 'zip': ('application/zip', 'zip', '.zip', None),
619 'zip': ('application/zip', 'zip', '.zip', None),
620 }
620 }
621
621
622 def archive(self, req, id, type_):
622 def archive(self, req, key, type_):
623 reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame))
623 reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame))
624 cnode = self.repo.lookup(id)
624 cnode = self.repo.lookup(key)
625 arch_version = id
625 arch_version = key
626 if cnode == id or id == 'tip':
626 if cnode == key or key == 'tip':
627 arch_version = short(cnode)
627 arch_version = short(cnode)
628 name = "%s-%s" % (reponame, arch_version)
628 name = "%s-%s" % (reponame, arch_version)
629 mimetype, artype, extension, encoding = self.archive_specs[type_]
629 mimetype, artype, extension, encoding = self.archive_specs[type_]
General Comments 0
You need to be logged in to leave comments. Login now