[PATCH 06 of 11 v2] localrepo: decorate changelog() with filecache

Idan Kamara idankk86 at gmail.com
Mon Jul 25 07:09:13 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1311595717 -10800
# Node ID a594d24ca0d3cdf1a5af2d6701e181799728b620
# Parent  e36a01019789efe56f6cfad7f7ecb191f9eb77d1
localrepo: decorate changelog() with filecache

diff -r e36a01019789 -r a594d24ca0d3 mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Jul 25 15:08:37 2011 +0300
+++ b/mercurial/localrepo.py	Mon Jul 25 15:08:37 2011 +0300
@@ -175,7 +175,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