This code does not seems necessary anymore.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
This code does not seems necessary anymore.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/revlog.py (4 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
return iter(pycompat.xrange(len(self))) | return iter(pycompat.xrange(len(self))) | ||||
def revs(self, start=0, stop=None): | def revs(self, start=0, stop=None): | ||||
"""iterate over all rev in this revlog (from start to stop)""" | """iterate over all rev in this revlog (from start to stop)""" | ||||
return storageutil.iterrevs(len(self), start=start, stop=stop) | return storageutil.iterrevs(len(self), start=start, stop=stop) | ||||
@util.propertycache | @util.propertycache | ||||
def nodemap(self): | def nodemap(self): | ||||
if self.index: | |||||
# populate mapping down to the initial node | |||||
node0 = self.index[0][7] # get around changelog filtering | |||||
self.rev(node0) | |||||
return self.index.nodemap | return self.index.nodemap | ||||
@property | @property | ||||
def _nodecache(self): | def _nodecache(self): | ||||
msg = "revlog._nodecache is deprecated, use revlog.index.nodemap" | msg = "revlog._nodecache is deprecated, use revlog.index.nodemap" | ||||
util.nouideprecwarn(msg, b'5.3', stacklevel=2) | util.nouideprecwarn(msg, b'5.3', stacklevel=2) | ||||
return self.index.nodemap | return self.index.nodemap | ||||