changeset 14325:f9e91a400c16

revlog: restore the base method
author Matt Mackall <mpm@selenic.com>
date Sun, 15 May 2011 11:50:15 -0500
parents d3a49a52f117
children 6078a99af433
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]