context: use rev for changelog lookup
authorMatt Mackall <mpm@selenic.com>
Sun, 08 Apr 2012 12:38:08 -0500
changeset 16377 f8ce254e514f
parent 16376 d3908c911d5e
child 16378 c463f46fe050
context: use rev for changelog lookup Faster when we're doing numeric scanning
mercurial/context.py
--- a/mercurial/context.py	Sun Apr 08 12:38:07 2012 -0500
+++ b/mercurial/context.py	Sun Apr 08 12:38:08 2012 -0500
@@ -129,7 +129,7 @@
 
     @propertycache
     def _changeset(self):
-        return self._repo.changelog.read(self.node())
+        return self._repo.changelog.read(self.rev())
 
     @propertycache
     def _manifest(self):