Show More
@@ -203,7 +203,7 b' class filectx(object):' | |||||
203 | def data(self): return self._filelog.read(self._filenode) |
|
203 | def data(self): return self._filelog.read(self._filenode) | |
204 | def renamed(self): return self._filelog.renamed(self._filenode) |
|
204 | def renamed(self): return self._filelog.renamed(self._filenode) | |
205 | def path(self): return self._path |
|
205 | def path(self): return self._path | |
206 |
def size(self): return self._filelog. |
|
206 | def size(self): return self._filelog.len(self._filerev) | |
207 |
|
207 | |||
208 | def cmp(self, text): return self._filelog.cmp(self._filenode, text) |
|
208 | def cmp(self, text): return self._filelog.cmp(self._filenode, text) | |
209 |
|
209 |
@@ -65,15 +65,15 b' class filelog(revlog):' | |||||
65 | return (m["copy"], bin(m["copyrev"])) |
|
65 | return (m["copy"], bin(m["copyrev"])) | |
66 | return False |
|
66 | return False | |
67 |
|
67 | |||
68 |
def |
|
68 | def len(self, rev): | |
69 |
"""return the |
|
69 | """return the len of a given revision""" | |
70 |
|
70 | |||
71 | # for revisions with renames, we have to go the slow way |
|
71 | # for revisions with renames, we have to go the slow way | |
72 | node = self.node(rev) |
|
72 | node = self.node(rev) | |
73 | if self.renamed(node): |
|
73 | if self.renamed(node): | |
74 | return len(self.read(node)) |
|
74 | return len(self.read(node)) | |
75 |
|
75 | |||
76 |
return |
|
76 | return self.size(rev) | |
77 |
|
77 | |||
78 | def cmp(self, node, text): |
|
78 | def cmp(self, node, text): | |
79 | """compare text with a given file revision""" |
|
79 | """compare text with a given file revision""" |
General Comments 0
You need to be logged in to leave comments.
Login now