revlog: restore the base method
authorMatt Mackall <mpm@selenic.com>
Sun, 15 May 2011 11:50:15 -0500
changeset 14325 f9e91a400c16
parent 14324 d3a49a52f117
child 14326 6078a99af433
revlog: restore the base method
mercurial/revlog.py
--- a/mercurial/revlog.py	Sat May 14 22:07:58 2011 -0700
+++ b/mercurial/revlog.py	Sun May 15 11:50:15 2011 -0500
@@ -319,6 +319,8 @@
         return self.start(rev) + self.length(rev)
     def length(self, rev):
         return self.index[rev][1]
+    def base(self, rev):
+        return self.index[rev][3]
     def chainbase(self, rev):
         index = self.index
         base = index[rev][3]