mercurial/revlog.py
changeset 301 5add718d92db
parent 243 9a9ea2d1d3c4
child 306 f06a4a3b86a7
--- a/mercurial/revlog.py	Fri Jun 10 00:25:04 2005 -0800
+++ b/mercurial/revlog.py	Fri Jun 10 00:26:29 2005 -0800
@@ -246,6 +246,9 @@
 
         node = hash(text, p1, p2)
 
+        if node in self.nodemap:
+            return node
+
         n = self.count()
         t = n - 1