##// END OF EJS Templates
large-files: also open the context in the subdirstate
marmoute -
r51037:308aff02 default
parent child Browse files
Show More
@@ -334,6 +334,27 b' def _changing(orig, self, repo, change_t'
334 334 self._sub_dirstate = pre
335 335
336 336
337 @eh.wrapfunction(dirstate.dirstate, b'running_status')
338 @contextlib.contextmanager
339 def running_status(orig, self, repo):
340 pre = sub_dirstate = getattr(self, '_sub_dirstate', None)
341 try:
342 lfd = getattr(self, '_large_file_dirstate', False)
343 if sub_dirstate is None and not lfd:
344 sub_dirstate = lfutil.openlfdirstate(repo.ui, repo)
345 self._sub_dirstate = sub_dirstate
346 if not lfd:
347 assert self._sub_dirstate is not None
348 with orig(self, repo):
349 if sub_dirstate is None:
350 yield
351 else:
352 with sub_dirstate.running_status(repo):
353 yield
354 finally:
355 self._sub_dirstate = pre
356
357
337 358 @eh.wrapfunction(subrepo.hgsubrepo, b'status')
338 359 def overridestatusfn(orig, repo, rev2, **opts):
339 360 with lfstatus(repo._repo):
General Comments 0
You need to be logged in to leave comments. Login now