# HG changeset patch # User Christian Ebert # Date 1173788246 -3600 # Node ID a1406a50ca83e9d3388f7273c8f6ee9283d83c5c # Parent 384672d8080f50ee48d3856558bbbc2fc3148539 hgweb: short hash for tip archive name 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 @@ -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_]