[PATCH 06 of 11] localrepo: decorate changelog() with filecache
Idan Kamara
idankk86 at gmail.com
Sat Jul 16 09:34:37 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1310826866 -10800
# Node ID 1151fea4eaf932d9f51f1ef69be801c54ff726e6
# Parent f25c73e6042dea2dbe5f3c91a5242c313183a594
localrepo: decorate changelog() with filecache
diff -r f25c73e6042d -r 1151fea4eaf9 mercurial/localrepo.py
--- a/mercurial/localrepo.py Sat Jul 16 17:34:26 2011 +0300
+++ b/mercurial/localrepo.py Sat Jul 16 17:34:26 2011 +0300
@@ -173,7 +173,7 @@
def _bookmarkcurrent(self):
return bookmarks.readcurrent(self)
- @propertycache
+ @filecache('00changelog.i', True)
def changelog(self):
c = changelog.changelog(self.sopener)
if 'HG_PENDING' in os.environ:
More information about the Mercurial-devel
mailing list