[PATCH 3 of 4] imported patch addrevision

Pradeepkumar Gayam in3xes at gmail.com
Tue Jun 22 02:31:04 CDT 2010


# HG changeset patch
# User Pradeepkumar Gayam <in3xes at gmail.com>
# Date 1277183801 -19800
# Node ID 7060a4d066fb28d08eaec62a46bd45b96fbfe4be
# Parent  3c0cf3b7fd9ece7f7d31c6119eb83eea5807f89d
imported patch addrevision

diff -r 3c0cf3b7fd9e -r 7060a4d066fb mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Jun 22 10:46:41 2010 +0530
+++ b/mercurial/revlog.py	Tue Jun 22 10:46:41 2010 +0530
@@ -1134,11 +1134,11 @@
         prev = curr - 1
         base = self.base(prev)
         offset = self.end(prev)
-        flags = 0
+        flags = REVLOG_PARENTDELTA_FLAGS
 
         if curr:
             if not d:
-                ptext = self.revision(self.node(prev))
+                ptext = self.revision(p1)
                 d = mdiff.textdiff(ptext, text)
             data = compress(d)
             l = len(data[1]) + len(data[0])


More information about the Mercurial-devel mailing list