Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 14934:019fe0b0a7af
localrepo: decorate manifest() with filecache
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Mon, 25 Jul 2011 15:08:37 +0300 |
parents | f61a85b2affa |
children | 4ae7473f5b73 |
comparison
equal
deleted
inserted
replaced
14933:f61a85b2affa | 14934:019fe0b0a7af |
---|---|
182 p = os.environ['HG_PENDING'] | 182 p = os.environ['HG_PENDING'] |
183 if p.startswith(self.root): | 183 if p.startswith(self.root): |
184 c.readpending('00changelog.i.a') | 184 c.readpending('00changelog.i.a') |
185 return c | 185 return c |
186 | 186 |
187 @propertycache | 187 @filecache('00manifest.i', True) |
188 def manifest(self): | 188 def manifest(self): |
189 return manifest.manifest(self.sopener) | 189 return manifest.manifest(self.sopener) |
190 | 190 |
191 @filecache('dirstate') | 191 @filecache('dirstate') |
192 def dirstate(self): | 192 def dirstate(self): |