changeset 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 c463f46fe050
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):