Mercurial > hg
changeset 531:0e9234a1a3f6
Hashing speed-up
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hashing speed-up
- From Chris Mason
manifest hash: c10091676647015b907a3ddce4dc629cb485de36
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCxCFmywK+sNU5EO8RAjiEAJ98eBaomWIUtT7DAm5dCbcAOe1I7gCdFl/E
AvepXnn+tLC2Grk9et2sL3M=
=spZz
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Thu, 30 Jun 2005 08:44:22 -0800 |
parents | c5b8ed036433 |
children | 2e9698a5c92c |
files | mercurial/revlog.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Wed Jun 29 22:12:23 2005 -0800 +++ b/mercurial/revlog.py Thu Jun 30 08:44:22 2005 -0800 @@ -37,7 +37,10 @@ def hash(text, p1, p2): l = [p1, p2] l.sort() - return sha.sha(l[0] + l[1] + text).digest() + s = sha.new(l[0]) + s.update(l[1]) + s.update(text) + return s.digest() nullid = "\0" * 20 indexformat = ">4l20s20s20s"