##// 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 421 wlock = None
422 422 try:
423 423 wlock = self.wlock()
424 with self.dirstate.changing_files(self):
424 425 for f in self.dirstate:
425 426 if not self.dirstate.get_entry(f).maybe_clean:
426 427 continue
@@ -445,7 +446,6 b' def reposetup(ui, repo):'
445 446 # Write the cache to update mtime and cache .hgeol
446 447 with self.vfs(b"eol.cache", b"w") as f:
447 448 f.write(hgeoldata)
448 self.dirstate.write(self.currenttransaction())
449 449 except errormod.LockUnavailable:
450 450 # If we cannot lock the repository and clear the
451 451 # dirstate, then a commit might not see all files
General Comments 0
You need to be logged in to leave comments. Login now