[PATCH 07 of 10] Unpack data from lightweight copy

Sune Foldager cryo at cyanite.org
Wed Sep 8 14:48:20 CDT 2010


# HG changeset patch
# User Sune Foldager <sune.foldager at edlund.dk>
# Date 1283855858 -7200
# Node ID 9c1601e70b8ec414bb7f93ec94dc09b4a7d93f03
# Parent  83e5bbba807175984580f2aa2c55d072826d3df0
Unpack data from lightweight copy

diff --git a/mercurial/filelog.py b/mercurial/filelog.py
--- a/mercurial/filelog.py
+++ b/mercurial/filelog.py
@@ -87,6 +87,10 @@
             hashtext = self._unpack_text(text)
         return revlog.revlog._hash(self, text, hashtext, p1, p2)
 
+    def _revision(self, rev):
+        t = revlog.revlog._revision(self, rev)
+        return self._unpack_text(t)
+
 def _parsemeta(t):
     # t can be buffer, so we can't use .startswith
     if t[:2] != '\1\n':


More information about the Mercurial-devel mailing list