[PATCH 07 of 11] localrepo: decorate _bookmarks/current with filecache
Idan Kamara
idankk86 at gmail.com
Sat Jul 16 09:34:38 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1310826866 -10800
# Node ID ec2758e130651868009f8afc837c77a61e850716
# Parent 1151fea4eaf932d9f51f1ef69be801c54ff726e6
localrepo: decorate _bookmarks/current with filecache
nodebookmarks() can be cached as well, leaving for later
diff -r 1151fea4eaf9 -r ec2758e13065 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
@@ -165,11 +165,11 @@
parts.pop()
return False
- @util.propertycache
+ @filecache('bookmarks')
def _bookmarks(self):
return bookmarks.read(self)
- @util.propertycache
+ @filecache('bookmarks.current')
def _bookmarkcurrent(self):
return bookmarks.readcurrent(self)
More information about the Mercurial-devel
mailing list