Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 14932:d3ac759a6d66
localrepo: decorate changelog() with filecache
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Mon, 25 Jul 2011 15:08:37 +0300 |
parents | a710936c3037 |
children | f61a85b2affa |
comparison
equal
deleted
inserted
replaced
14931:a710936c3037 | 14932:d3ac759a6d66 |
---|---|
173 | 173 |
174 @util.propertycache | 174 @util.propertycache |
175 def _bookmarkcurrent(self): | 175 def _bookmarkcurrent(self): |
176 return bookmarks.readcurrent(self) | 176 return bookmarks.readcurrent(self) |
177 | 177 |
178 @propertycache | 178 @filecache('00changelog.i', True) |
179 def changelog(self): | 179 def changelog(self): |
180 c = changelog.changelog(self.sopener) | 180 c = changelog.changelog(self.sopener) |
181 if 'HG_PENDING' in os.environ: | 181 if 'HG_PENDING' in os.environ: |
182 p = os.environ['HG_PENDING'] | 182 p = os.environ['HG_PENDING'] |
183 if p.startswith(self.root): | 183 if p.startswith(self.root): |