Mercurial > public > mercurial-scm > hg
comparison mercurial/filelog.py @ 39843:68282a7b29a7
filelog: remove version attribute (API)
This was only used by verify code. The check it was used for is now
implemented as part of the verifyintegrity() implementation. The
attribute is now unused, is revlog-specific, and isn't appropriate
to be exposing on the file storage interface. So drop it.
Differential Revision: https://phab.mercurial-scm.org/D4702
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 19 Sep 2018 11:20:02 -0700 |
parents | 97986c9c69d3 |
children | 0cb3e02e1d1b |
comparison
equal
deleted
inserted
replaced
39842:97986c9c69d3 | 39843:68282a7b29a7 |
---|---|
25 # Full name of the user visible file, relative to the repository root. | 25 # Full name of the user visible file, relative to the repository root. |
26 # Used by LFS. | 26 # Used by LFS. |
27 self.filename = path | 27 self.filename = path |
28 # Used by repo upgrade. | 28 # Used by repo upgrade. |
29 self.index = self._revlog.index | 29 self.index = self._revlog.index |
30 # Used by verify. | |
31 self.version = self._revlog.version | |
32 # Used by changegroup generation. | 30 # Used by changegroup generation. |
33 self._generaldelta = self._revlog._generaldelta | 31 self._generaldelta = self._revlog._generaldelta |
34 | 32 |
35 def __len__(self): | 33 def __len__(self): |
36 return len(self._revlog) | 34 return len(self._revlog) |