# HG changeset patch # User mpm@selenic.com # Date 1120257991 28800 # Node ID e8fd41110dce25ee4b389c891bf7dbc0a90c1f62 # Parent 87f37e61d0db27c3963bc64baa49bd396ad43e46 [PATCH] Add tags to hgweb -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Add tags to hgweb From: Goffredo Baroncelli manifest hash: 3a59c363799c974b042dbb55f943d830feb1b34f -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxcfHywK+sNU5EO8RAgEKAJ40SRMOyBOkbS8QU2MIBUzBnhu5AwCbBDjR M+gaWyqzqOBzO1r+9zpb37k= =l1pL -----END PGP SIGNATURE----- diff -r 87f37e61d0db -r e8fd41110dce mercurial/hgweb.py --- a/mercurial/hgweb.py Fri Jul 01 14:43:36 2005 -0800 +++ b/mercurial/hgweb.py Fri Jul 01 14:46:31 2005 -0800 @@ -155,6 +155,10 @@ if node != hex(nullid): yield self.t(t1, node = node, rev = rev, **args) + def showtag(self, t1, node=nullid, **args): + for t in self.repo.nodetags(node): + yield self.t(t1, tag = t, **args) + def diff(self, node1, node2, files): def filterfiles(list, files): l = [ x for x in list if x in files ] @@ -259,6 +263,7 @@ hex(p1), cl.rev(p1)), parent2 = self.parent("changelogparent", hex(p2), cl.rev(p2)), + changelogtag = self.showtag("changelogtag",n), p1 = hex(p1), p2 = hex(p2), p1rev = cl.rev(p1), p2rev = cl.rev(p2), manifest = hex(changes[0]), @@ -326,6 +331,7 @@ hex(p1), cl.rev(p1)), parent2 = self.parent("changelogparent", hex(p2), cl.rev(p2)), + changelogtag = self.showtag("changelogtag",n), p1 = hex(p1), p2 = hex(p2), p1rev = cl.rev(p1), p2rev = cl.rev(p2), manifest = hex(changes[0]), @@ -376,6 +382,7 @@ hex(p1), cl.rev(p1)), parent2 = self.parent("changesetparent", hex(p2), cl.rev(p2)), + changesettag = self.showtag("changesettag",n), p1 = hex(p1), p2 = hex(p2), p1rev = cl.rev(p1), p2rev = cl.rev(p2), manifest = hex(changes[0]), diff -r 87f37e61d0db -r e8fd41110dce templates/changelogentry.tmpl --- a/templates/changelogentry.tmpl Fri Jul 01 14:43:36 2005 -0800 +++ b/templates/changelogentry.tmpl Fri Jul 01 14:46:31 2005 -0800 @@ -8,6 +8,7 @@ #node|short# #parent1# #parent2# +#changelogtag# author:  #author|obfuscate# diff -r 87f37e61d0db -r e8fd41110dce templates/changeset.tmpl --- a/templates/changeset.tmpl Fri Jul 01 14:43:36 2005 -0800 +++ b/templates/changeset.tmpl Fri Jul 01 14:46:31 2005 -0800 @@ -18,6 +18,7 @@ #node|short# #parent1# #parent2# +#changesettag# manifest: #manifest|short# diff -r 87f37e61d0db -r e8fd41110dce templates/map --- a/templates/map Fri Jul 01 14:43:36 2005 -0800 +++ b/templates/map Fri Jul 01 14:46:31 2005 -0800 @@ -30,3 +30,5 @@ tags = tags.tmpl tagentry = "
#node# #tag#
" diffblock = "
#lines#
" +changelogtag = "tag: #tag#" +changesettag = "tag: #tag#" diff -r 87f37e61d0db -r e8fd41110dce templates/searchentry.tmpl --- a/templates/searchentry.tmpl Fri Jul 01 14:43:36 2005 -0800 +++ b/templates/searchentry.tmpl Fri Jul 01 14:46:31 2005 -0800 @@ -8,6 +8,7 @@ #node|short# #parent1# #parent2# +#changelogtag# author:  #author|obfuscate#