Mercurial > hg
comparison mercurial/context.py @ 16377:f8ce254e514f
context: use rev for changelog lookup
Faster when we're doing numeric scanning
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 08 Apr 2012 12:38:08 -0500 |
parents | d3908c911d5e |
children | 80b3d574881f |
comparison
equal
deleted
inserted
replaced
16376:d3908c911d5e | 16377:f8ce254e514f |
---|---|
127 def __nonzero__(self): | 127 def __nonzero__(self): |
128 return self._rev != nullrev | 128 return self._rev != nullrev |
129 | 129 |
130 @propertycache | 130 @propertycache |
131 def _changeset(self): | 131 def _changeset(self): |
132 return self._repo.changelog.read(self.node()) | 132 return self._repo.changelog.read(self.rev()) |
133 | 133 |
134 @propertycache | 134 @propertycache |
135 def _manifest(self): | 135 def _manifest(self): |
136 return self._repo.manifest.read(self._changeset[0]) | 136 return self._repo.manifest.read(self._changeset[0]) |
137 | 137 |