##// END OF EJS Templates
keyword: wrap dirstate mutation in `changing_files` context...
marmoute -
r51046:092db646 default
parent child Browse files
Show More
@@ -421,6 +421,7 b' def reposetup(ui, repo):'
421 wlock = None
421 wlock = None
422 try:
422 try:
423 wlock = self.wlock()
423 wlock = self.wlock()
424 with self.dirstate.changing_files(self):
424 for f in self.dirstate:
425 for f in self.dirstate:
425 if not self.dirstate.get_entry(f).maybe_clean:
426 if not self.dirstate.get_entry(f).maybe_clean:
426 continue
427 continue
@@ -445,7 +446,6 b' def reposetup(ui, repo):'
445 # Write the cache to update mtime and cache .hgeol
446 # Write the cache to update mtime and cache .hgeol
446 with self.vfs(b"eol.cache", b"w") as f:
447 with self.vfs(b"eol.cache", b"w") as f:
447 f.write(hgeoldata)
448 f.write(hgeoldata)
448 self.dirstate.write(self.currenttransaction())
449 except errormod.LockUnavailable:
449 except errormod.LockUnavailable:
450 # If we cannot lock the repository and clear the
450 # If we cannot lock the repository and clear the
451 # dirstate, then a commit might not see all files
451 # dirstate, then a commit might not see all files
General Comments 0
You need to be logged in to leave comments. Login now