mercurial/hgweb.py
changeset 375 b29219389b00
parent 369 09f24af48b82
child 377 e5d769afd3ef
--- 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--")
             }