equal
deleted
inserted
replaced
30 opener, |
30 opener, |
31 # XXX should use the unencoded path |
31 # XXX should use the unencoded path |
32 target=(revlog_constants.KIND_FILELOG, path), |
32 target=(revlog_constants.KIND_FILELOG, path), |
33 radix=b'/'.join((b'data', path)), |
33 radix=b'/'.join((b'data', path)), |
34 censorable=True, |
34 censorable=True, |
|
35 canonical_parent_order=False, # see comment in revlog.py |
35 ) |
36 ) |
36 # Full name of the user visible file, relative to the repository root. |
37 # Full name of the user visible file, relative to the repository root. |
37 # Used by LFS. |
38 # Used by LFS. |
38 self._revlog.filename = path |
39 self._revlog.filename = path |
39 self.nullid = self._revlog.nullid |
40 self.nullid = self._revlog.nullid |
205 return len(self.read(node)) |
206 return len(self.read(node)) |
206 if self.iscensored(rev): |
207 if self.iscensored(rev): |
207 return 0 |
208 return 0 |
208 |
209 |
209 # 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 # XXX See also basefilectx.cmp. |
210 return self._revlog.size(rev) |
212 return self._revlog.size(rev) |
211 |
213 |
212 def cmp(self, node, text): |
214 def cmp(self, node, text): |
213 """compare text with a given file revision |
215 """compare text with a given file revision |
214 |
216 |