diff mercurial/hgweb/hgweb_mod.py @ 4282:a1406a50ca83

hgweb: short hash for tip archive name
author Christian Ebert <blacktrash@gmx.net>
date Tue, 13 Mar 2007 13:17:26 +0100
parents b11a2fb59cf5
children 05d15c456fb2
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -610,7 +610,7 @@ class hgweb(object):
         reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame))
         cnode = self.repo.lookup(id)
         arch_version = id
-        if cnode == id:
+        if cnode == id or id == 'tip':
             arch_version = short(cnode)
         name = "%s-%s" % (reponame, arch_version)
         mimetype, artype, extension, encoding = self.archive_specs[type_]