comparison mercurial/localrepo.py @ 41038:3913223417ea

manifest: accept narrowmatch into constructor instead of getting from repo The manifest should ideally not know at all about the repo, so this is just a little step towards cleaning that up. Differential Revision: https://phab.mercurial-scm.org/D5469
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 03 Dec 2018 22:22:23 -0800
parents a714eee1ac28
children ce0bc2952e2a
comparison
equal deleted inserted replaced
41037:2eeef8e577ac 41038:3913223417ea
1188 trypending=txnutil.mayhavepending(self.root)) 1188 trypending=txnutil.mayhavepending(self.root))
1189 1189
1190 @storecache('00manifest.i') 1190 @storecache('00manifest.i')
1191 def manifestlog(self): 1191 def manifestlog(self):
1192 rootstore = manifest.manifestrevlog(self.svfs) 1192 rootstore = manifest.manifestrevlog(self.svfs)
1193 return manifest.manifestlog(self.svfs, self, rootstore) 1193 return manifest.manifestlog(self.svfs, self, rootstore,
1194 self.narrowmatch())
1194 1195
1195 @repofilecache('dirstate') 1196 @repofilecache('dirstate')
1196 def dirstate(self): 1197 def dirstate(self):
1197 return self._makedirstate() 1198 return self._makedirstate()
1198 1199