hgweb_mod.archive(): Use 'key' instead of builtin 'id'.
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 21 Jun 2007 19:38:44 +0200
changeset 4669 96e096fe9e86
parent 4668 e241598e956f
child 4670 850950e59b52
hgweb_mod.archive(): Use 'key' instead of builtin 'id'.
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Thu Jun 21 19:24:27 2007 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Thu Jun 21 19:38:44 2007 +0200
@@ -619,11 +619,11 @@
         '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_]