Mercurial > hg > gitweb
comparison 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 |
comparison
equal
deleted
inserted
replaced
374:f07d00fcd281 | 375:b29219389b00 |
---|---|
127 "escape": cgi.escape, | 127 "escape": cgi.escape, |
128 "age": age, | 128 "age": age, |
129 "date": (lambda x: time.asctime(time.gmtime(x))), | 129 "date": (lambda x: time.asctime(time.gmtime(x))), |
130 "addbreaks": nl2br, | 130 "addbreaks": nl2br, |
131 "obfuscate": obfuscate, | 131 "obfuscate": obfuscate, |
132 "short": (lambda x: x[:12]), | |
132 "firstline": (lambda x: x.splitlines(1)[0]), | 133 "firstline": (lambda x: x.splitlines(1)[0]), |
133 "permissions": (lambda x: x and "-rwxr-xr-x" or "-rw-r--r--") | 134 "permissions": (lambda x: x and "-rwxr-xr-x" or "-rw-r--r--") |
134 } | 135 } |
135 | 136 |
136 def refresh(self): | 137 def refresh(self): |