Mercurial > hg
changeset 7362:6db4a2ccef3a
revlog: remove delta function
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 12 Nov 2008 15:32:16 -0600 |
parents | 9fe97eea5510 |
children | 9d28ff207030 |
files | mercurial/manifest.py mercurial/revlog.py |
diffstat | 2 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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):