diff mercurial/revlog.py @ 3335:9061613c1593

Teach bdiff to support buffer objects manifest.add gives revlog.addrevision a buffer object, which may be cached and used for a second call in the same session (as mq does when pushing multiple patches). The other option would be to cast the buffer to str when caching it.
author Brendan Cully <brendan@kublai.com>
date Wed, 11 Oct 2006 12:06:14 -0700
parents 7240f9e47144
children ef8307585b41
line wrap: on
line diff
--- a/mercurial/revlog.py	Wed Oct 11 12:02:06 2006 -0700
+++ b/mercurial/revlog.py	Wed Oct 11 12:06:14 2006 -0700
@@ -973,7 +973,7 @@
             end = self.end(t)
             if not d:
                 prev = self.revision(self.tip())
-                d = self.diff(prev, str(text))
+                d = self.diff(prev, text)
             data = compress(d)
             l = len(data[1]) + len(data[0])
             dist = end - start + l