Mercurial > hg-stable
diff mercurial/hgweb.py @ 375:b29219389b00
Show nice short hashes in hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Show nice short hashes in hgweb
manifest hash: c73a8e32a823af7ea7440d1db2b0c022a4366bb5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCsQpkywK+sNU5EO8RAmSIAJ40aYEFBi07drKuPLuofXNaUkEFtgCghC9g
mG8mmhucbBe4hcZWL0AdG8I=
=Khp7
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 15 Jun 2005 21:13:08 -0800 |
parents | 09f24af48b82 |
children | e5d769afd3ef |
line wrap: on
line diff
--- a/mercurial/hgweb.py Wed Jun 15 21:12:28 2005 -0800 +++ b/mercurial/hgweb.py Wed Jun 15 21:13:08 2005 -0800 @@ -129,6 +129,7 @@ "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--") }