# HG changeset patch # User Matt Mackall # Date 2012-04-08 17:38:08 # Node ID f8ce254e514fd432eccb979d0ead6a4534c47f63 # Parent d3908c911d5e8c0aec0b46f7f74fc90f5020d062 context: use rev for changelog lookup Faster when we're doing numeric scanning diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -129,7 +129,7 @@ class changectx(object): @propertycache def _changeset(self): - return self._repo.changelog.read(self.node()) + return self._repo.changelog.read(self.rev()) @propertycache def _manifest(self):