# HG changeset patch # User Josef "Jeff" Sipek # Date 1133784460 18000 # Node ID 0a1cca912fda592df59f4ad90e6a6b1474a7651e # Parent 32b091ce402631dadbaf53537183df16d600a4fa [hgweb] gitweb style: File annotate converted, file revision made more like the deafault style Namespace polution prevention (manifest vs. tagmanifest - shouldn't be a problem yet) File annotate updated File revision now has commit info diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -632,7 +632,7 @@ class hgweb(object): for k,n in i: yield {"parity": parity, "tag": k, - "manifest": hex(cl.read(n)[0]), + "tagmanifest": hex(cl.read(n)[0]), "date": cl.read(n)[2], "node": hex(n)} parity = 1 - parity @@ -668,7 +668,7 @@ class hgweb(object): tag = k, node = hex(n), date = t, - manifest = hex(m)) + tagmanifest = hex(m)) parity = 1 - parity def changelist(**map): diff --git a/templates/fileannotate-gitweb.tmpl b/templates/fileannotate-gitweb.tmpl --- a/templates/fileannotate-gitweb.tmpl +++ b/templates/fileannotate-gitweb.tmpl @@ -13,16 +13,16 @@ summary | changelog | tags | manifest | changeset | file | revisions | annotate
-

Annotate #file# (#filenode|short#)

+
#file#
- + #parent%fileannotateparent# - + @@ -34,10 +34,10 @@
changeset #rev#:#node|short#
#node|short#
manifest:#manifest|short#
#manifest|short#
author: #author|obfuscate#
#permissions|permissions#
-
- - +
+
#annotate%annotateline#
+ #footer# diff --git a/templates/filerevision-gitweb.tmpl b/templates/filerevision-gitweb.tmpl --- a/templates/filerevision-gitweb.tmpl +++ b/templates/filerevision-gitweb.tmpl @@ -14,6 +14,26 @@
#file#
+ + + + + +#parent%fileannotateparent# + + + + + + + + + + + + +
changeset #rev#:#node|short#
manifest:#manifest|short#
author:#author|obfuscate#
date:#date|date# (#date|age# ago)
permissions:#permissions|permissions#
+
#text%fileline#
diff --git a/templates/map-gitweb b/templates/map-gitweb --- a/templates/map-gitweb +++ b/templates/map-gitweb @@ -22,7 +22,7 @@ filediff = filediff-gitweb.tmpl filelog = filelog-gitweb.tmpl fileline = "
#linenumber# #line|escape#
" filelogentry = filelogentry-gitweb.tmpl -annotateline = "#author|obfuscate#@#rev#
#line|escape#
" +annotateline = "#author|obfuscate#@#rev##line|escape#" difflineplus = "
#line|escape#
" difflineminus = "
#line|escape#
" difflineat = "
#line|escape#
" @@ -32,7 +32,7 @@ changesetparent = "parentparent:#node|short#" fileannotateparent = "parent:#node|short#" tags = tags-gitweb.tmpl -tagentry = "#date|age# ago#tag#changeset | changelog | manifest" +tagentry = "#date|age# ago#tag#changeset | changelog | manifest" diffblock = "#lines#" changelogtag = "tag:#tag#" changesettag = "tag#tag#" diff --git a/templates/tags-gitweb.tmpl b/templates/tags-gitweb.tmpl --- a/templates/tags-gitweb.tmpl +++ b/templates/tags-gitweb.tmpl @@ -10,7 +10,7 @@