Mercurial > public > mercurial-scm > hg
comparison mercurial/manifest.py @ 33175:3b85c474cbcf
manifest: apply checkambig=True only for root 00manifest.i
This is a fix for my 14ad8e2a4abe, which used 'bool(dir)' as
checkambig value for revlog.__init__().
I can't remember why I did so in 14ad8e2a4abe, but this is obviously
wrong, because only root indexfile is cached via filecache-ed property
of localrepository.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 30 Jun 2017 01:47:48 +0900 |
parents | b98199a5c3e1 |
children | 3c9691728237 |
comparison
equal
deleted
inserted
replaced
33174:f4f52bb362e6 | 33175:3b85c474cbcf |
---|---|
1228 self._dirlogcache = dirlogcache | 1228 self._dirlogcache = dirlogcache |
1229 else: | 1229 else: |
1230 self._dirlogcache = {'': self} | 1230 self._dirlogcache = {'': self} |
1231 | 1231 |
1232 super(manifestrevlog, self).__init__(opener, indexfile, | 1232 super(manifestrevlog, self).__init__(opener, indexfile, |
1233 checkambig=bool(dir)) | 1233 # only root indexfile is cached |
1234 checkambig=not bool(dir)) | |
1234 | 1235 |
1235 @property | 1236 @property |
1236 def fulltextcache(self): | 1237 def fulltextcache(self): |
1237 return self._fulltextcache | 1238 return self._fulltextcache |
1238 | 1239 |