mercurial/revlog.py
changeset 531 0e9234a1a3f6
parent 515 03f27b1381f9
child 542 eda4c32c167a
child 547 4fc63e22b1fe
--- 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"