# HG changeset patch # User Thomas Arendsen Hein # Date 2007-06-21 17:38:44 # Node ID 96e096fe9e86dc0ac56b4b0d3fdf52f98e36a95a # Parent e241598e956f9c95eb0bd43aaea86b054c4c1d75 hgweb_mod.archive(): Use 'key' instead of builtin 'id'. diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -619,11 +619,11 @@ class hgweb(object): 'zip': ('application/zip', 'zip', '.zip', None), } - def archive(self, req, id, type_): + def archive(self, req, key, type_): reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame)) - cnode = self.repo.lookup(id) - arch_version = id - if cnode == id or id == 'tip': + cnode = self.repo.lookup(key) + arch_version = key + if cnode == key or key == 'tip': arch_version = short(cnode) name = "%s-%s" % (reponame, arch_version) mimetype, artype, extension, encoding = self.archive_specs[type_]