[PATCH 2/2] Permit to hgweb to show the tags: code changes
Goffredo Baroncelli
kreijack at libero.it
Fri Jul 1 16:10:49 CDT 2005
On Friday 01 July 2005 22:02, you (Matt Mackall) wrote:
> On Fri, Jul 01, 2005 at 09:17:15PM +0200, Goffredo Baroncelli wrote:
> > Hi, the patch below permits to hgweb to show tags and the parent changeset numbers in
> > the changelog/changeset page.
>
> You should change this to use repo.nodetags().
Ok
Permit to hgweb to show the tags: code changes
diff -r 2acce27d21fd mercurial/hgweb.py
--- a/mercurial/hgweb.py Fri Jul 1 20:47:10 2005
+++ b/mercurial/hgweb.py Fri Jul 1 23:07:22 2005
@@ -154,6 +154,10 @@
def parent(self, t1, node=nullid, rev=-1, **args):
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):
@@ -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]),
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack AT inwind DOT it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
More information about the Mercurial
mailing list