Show More
@@ -698,15 +698,11 b' def reposetup(ui, repo):' | |||||
698 | repo._fsmonitorstate = fsmonitorstate |
|
698 | repo._fsmonitorstate = fsmonitorstate | |
699 | repo._watchmanclient = client |
|
699 | repo._watchmanclient = client | |
700 |
|
700 | |||
701 | # at this point since fsmonitorstate wasn't present, repo.dirstate is |
|
701 | dirstate, cached = localrepo.isfilecached(repo, 'dirstate') | |
702 | # not a fsmonitordirstate |
|
702 | if cached: | |
703 | dirstate = repo.dirstate |
|
703 | # at this point since fsmonitorstate wasn't present, | |
704 | makedirstate(repo, dirstate) |
|
704 | # repo.dirstate is not a fsmonitordirstate | |
705 |
|
705 | makedirstate(repo, dirstate) | ||
706 | # invalidate property cache, but keep filecache which contains the |
|
|||
707 | # wrapped dirstate object |
|
|||
708 | del repo.unfiltered().__dict__['dirstate'] |
|
|||
709 | assert dirstate is repo._filecache['dirstate'].obj |
|
|||
710 |
|
706 | |||
711 | class fsmonitorrepo(repo.__class__): |
|
707 | class fsmonitorrepo(repo.__class__): | |
712 | def status(self, *args, **kwargs): |
|
708 | def status(self, *args, **kwargs): |
General Comments 0
You need to be logged in to leave comments.
Login now