##// END OF EJS Templates
[PATCH] Add tags to hgweb...
mpm@selenic.com -
r568:e8fd4111 default
parent child Browse files
Show More
@@ -155,6 +155,10 b' class hgweb:'
155 if node != hex(nullid):
155 if node != hex(nullid):
156 yield self.t(t1, node = node, rev = rev, **args)
156 yield self.t(t1, node = node, rev = rev, **args)
157
157
158 def showtag(self, t1, node=nullid, **args):
159 for t in self.repo.nodetags(node):
160 yield self.t(t1, tag = t, **args)
161
158 def diff(self, node1, node2, files):
162 def diff(self, node1, node2, files):
159 def filterfiles(list, files):
163 def filterfiles(list, files):
160 l = [ x for x in list if x in files ]
164 l = [ x for x in list if x in files ]
@@ -259,6 +263,7 b' class hgweb:'
259 hex(p1), cl.rev(p1)),
263 hex(p1), cl.rev(p1)),
260 parent2 = self.parent("changelogparent",
264 parent2 = self.parent("changelogparent",
261 hex(p2), cl.rev(p2)),
265 hex(p2), cl.rev(p2)),
266 changelogtag = self.showtag("changelogtag",n),
262 p1 = hex(p1), p2 = hex(p2),
267 p1 = hex(p1), p2 = hex(p2),
263 p1rev = cl.rev(p1), p2rev = cl.rev(p2),
268 p1rev = cl.rev(p1), p2rev = cl.rev(p2),
264 manifest = hex(changes[0]),
269 manifest = hex(changes[0]),
@@ -326,6 +331,7 b' class hgweb:'
326 hex(p1), cl.rev(p1)),
331 hex(p1), cl.rev(p1)),
327 parent2 = self.parent("changelogparent",
332 parent2 = self.parent("changelogparent",
328 hex(p2), cl.rev(p2)),
333 hex(p2), cl.rev(p2)),
334 changelogtag = self.showtag("changelogtag",n),
329 p1 = hex(p1), p2 = hex(p2),
335 p1 = hex(p1), p2 = hex(p2),
330 p1rev = cl.rev(p1), p2rev = cl.rev(p2),
336 p1rev = cl.rev(p1), p2rev = cl.rev(p2),
331 manifest = hex(changes[0]),
337 manifest = hex(changes[0]),
@@ -376,6 +382,7 b' class hgweb:'
376 hex(p1), cl.rev(p1)),
382 hex(p1), cl.rev(p1)),
377 parent2 = self.parent("changesetparent",
383 parent2 = self.parent("changesetparent",
378 hex(p2), cl.rev(p2)),
384 hex(p2), cl.rev(p2)),
385 changesettag = self.showtag("changesettag",n),
379 p1 = hex(p1), p2 = hex(p2),
386 p1 = hex(p1), p2 = hex(p2),
380 p1rev = cl.rev(p1), p2rev = cl.rev(p2),
387 p1rev = cl.rev(p1), p2rev = cl.rev(p2),
381 manifest = hex(changes[0]),
388 manifest = hex(changes[0]),
@@ -8,6 +8,7 b''
8 <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>
8 <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>
9 #parent1#
9 #parent1#
10 #parent2#
10 #parent2#
11 #changelogtag#
11 <tr>
12 <tr>
12 <td align="right">author:&nbsp;</td>
13 <td align="right">author:&nbsp;</td>
13 <td>#author|obfuscate#</td></tr>
14 <td>#author|obfuscate#</td></tr>
@@ -18,6 +18,7 b''
18 <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>
18 <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>
19 #parent1#
19 #parent1#
20 #parent2#
20 #parent2#
21 #changesettag#
21 <tr>
22 <tr>
22 <td class="metatag">manifest:</td>
23 <td class="metatag">manifest:</td>
23 <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest|short#</a></td></tr>
24 <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest|short#</a></td></tr>
@@ -30,3 +30,5 b' fileannotateparent = "<tr><td class="met'
30 tags = tags.tmpl
30 tags = tags.tmpl
31 tagentry = "<div class="parity#parity#"><tt>#node#</tt> <a href="?cmd=changeset;node=#node#">#tag#</a><br /></div>"
31 tagentry = "<div class="parity#parity#"><tt>#node#</tt> <a href="?cmd=changeset;node=#node#">#tag#</a><br /></div>"
32 diffblock = "<div class="parity#parity#">#lines#</div>"
32 diffblock = "<div class="parity#parity#">#lines#</div>"
33 changelogtag = "<tr><td align="right">tag:&nbsp;</td><td>#tag#</td></tr>"
34 changesettag = "<tr><td class="metatag">tag:&nbsp;</td><td>#tag#</td></tr>"
@@ -8,6 +8,7 b''
8 <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>
8 <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>
9 #parent1#
9 #parent1#
10 #parent2#
10 #parent2#
11 #changelogtag#
11 <tr>
12 <tr>
12 <td align="right">author:&nbsp;</td>
13 <td align="right">author:&nbsp;</td>
13 <td>#author|obfuscate#</td></tr>
14 <td>#author|obfuscate#</td></tr>
General Comments 0
You need to be logged in to leave comments. Login now