equal
deleted
inserted
replaced
200 def size(self, rev): |
200 def size(self, rev): |
201 """return the size of a given revision""" |
201 """return the size of a given revision""" |
202 |
202 |
203 # for revisions with renames, we have to go the slow way |
203 # for revisions with renames, we have to go the slow way |
204 node = self.node(rev) |
204 node = self.node(rev) |
|
205 if self.iscensored(rev): |
|
206 return 0 |
205 if self.renamed(node): |
207 if self.renamed(node): |
206 return len(self.read(node)) |
208 return len(self.read(node)) |
207 if self.iscensored(rev): |
|
208 return 0 |
|
209 |
209 |
210 # XXX if self.read(node).startswith("\1\n"), this returns (size+4) |
210 # XXX if self.read(node).startswith("\1\n"), this returns (size+4) |
211 return self._revlog.size(rev) |
211 return self._revlog.size(rev) |
212 |
212 |
213 def cmp(self, node, text): |
213 def cmp(self, node, text): |