diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -129,6 +129,7 @@ class hgweb: "date": (lambda x: time.asctime(time.gmtime(x))), "addbreaks": nl2br, "obfuscate": obfuscate, + "short": (lambda x: x[:12]), "firstline": (lambda x: x.splitlines(1)[0]), "permissions": (lambda x: x and "-rwxr-xr-x" or "-rw-r--r--") } diff --git a/templates/changelogentry.tmpl b/templates/changelogentry.tmpl --- a/templates/changelogentry.tmpl +++ b/templates/changelogentry.tmpl @@ -5,7 +5,7 @@ #desc|firstline|escape# changeset #rev#:  - #node# + #node|short# #parent1# #parent2# diff --git a/templates/changeset.tmpl b/templates/changeset.tmpl --- a/templates/changeset.tmpl +++ b/templates/changeset.tmpl @@ -1,5 +1,5 @@ #header# -#repo|escape#: changeset #node# +#repo|escape#: changeset #node|short# @@ -15,12 +15,12 @@ - + #parent1# #parent2# - + diff --git a/templates/fileannotate.tmpl b/templates/fileannotate.tmpl --- a/templates/fileannotate.tmpl +++ b/templates/fileannotate.tmpl @@ -12,17 +12,17 @@ revisions -

Annotate #file# (#filenode#)

+

Annotate #file# (#filenode|short#)

changeset #rev#:#node#
#node|short#
manifest:#manifest#
#manifest|short#
author: #author|obfuscate#
- + #parent1# #parent2# - + diff --git a/templates/filediff.tmpl b/templates/filediff.tmpl --- a/templates/filediff.tmpl +++ b/templates/filediff.tmpl @@ -18,10 +18,10 @@
changeset #rev#:#node#
#node|short#
manifest:#manifest#
#manifest|short#
author: #author|obfuscate#
- + - +
revision #rev#:#node#
#node|short#
parent #p1rev#:#p1#
#p1|short#
diff --git a/templates/filelogentry.tmpl b/templates/filelogentry.tmpl
--- a/templates/filelogentry.tmpl
+++ b/templates/filelogentry.tmpl
@@ -4,7 +4,7 @@
  #desc|firstline|escape#
 
  revision #filerev#: 
- #filenode#
+ #filenode|short#
 (diff)
 (annotate)
 
diff --git a/templates/filerevision.tmpl b/templates/filerevision.tmpl
--- a/templates/filerevision.tmpl
+++ b/templates/filerevision.tmpl
@@ -13,17 +13,17 @@
 raw
 
 
-

#file# (revision #filenode#)

+

#file# (revision #filenode|short#)

- + #parent1# #parent2# - + diff --git a/templates/manifest.tmpl b/templates/manifest.tmpl --- a/templates/manifest.tmpl +++ b/templates/manifest.tmpl @@ -1,5 +1,5 @@ #header# -#repo|escape#: manifest #manifest# +#repo|escape#: manifest #manifest|short# @@ -9,7 +9,7 @@ changeset -

manifest: #path#

+

manifest #manifest|short#: #path#

changeset #rev#:#node#
#node|short#
manifest:#manifest#
#manifest|short#
author: #author|obfuscate#
diff --git a/templates/map b/templates/map --- a/templates/map +++ b/templates/map @@ -21,10 +21,10 @@ difflineplus = "# difflineminus = "#line|escape#" difflineat = "#line|escape#" diffline = "#line|escape#" -changelogparent = "" +changelogparent = "" changesetparent = "" -filerevparent = "" -fileannotateparent = "" +filerevparent = "" +fileannotateparent = "" tags = tags.tmpl tagentry = "
#node# #tag#
" diffblock = "
#lines#
"
parent: #node#
parent: #node|short#
parent:#node#
parent:#node#
parent:#node#
parent:#node|short#
parent:#node|short#