revlog: remove delta function
authorMatt Mackall <mpm@selenic.com>
Wed, 12 Nov 2008 15:32:16 -0600
changeset 7362 6db4a2ccef3a
parent 7361 9fe97eea5510
child 7363 9d28ff207030
revlog: remove delta function
mercurial/manifest.py
mercurial/revlog.py
--- a/mercurial/manifest.py	Wed Nov 12 15:19:14 2008 -0600
+++ b/mercurial/manifest.py	Wed Nov 12 15:32:16 2008 -0600
@@ -35,7 +35,8 @@
         return mfdict
 
     def readdelta(self, node):
-        return self.parse(mdiff.patchtext(self.delta(node)))
+        r = self.rev(node)
+        return self.parse(mdiff.patchtext(self.revdiff(r - 1, r)))
 
     def read(self, node):
         if node == nullid: return manifestdict() # don't upset local cache
--- a/mercurial/revlog.py	Wed Nov 12 15:19:14 2008 -0600
+++ b/mercurial/revlog.py	Wed Nov 12 15:32:16 2008 -0600
@@ -941,11 +941,6 @@
 
         return decompress(c)
 
-    def delta(self, node):
-        """return or calculate a delta between a node and its predecessor"""
-        r = self.rev(node)
-        return self.revdiff(r - 1, r)
-
     def revdiff(self, rev1, rev2):
         """return or calculate a delta between two revisions"""
         if rev1 + 1 == rev2 and self.base(rev1) == self.base(rev2):