hgext/eol.py
changeset 49997 981d2f132935
parent 49284 d44e3c45f0e4
child 50151 092db6464321
equal deleted inserted replaced
49996:89796af68b27 49997:981d2f132935
   443                         # the new .hgeol file specify a different filter
   443                         # the new .hgeol file specify a different filter
   444                         self.dirstate.set_possibly_dirty(f)
   444                         self.dirstate.set_possibly_dirty(f)
   445                     # Write the cache to update mtime and cache .hgeol
   445                     # Write the cache to update mtime and cache .hgeol
   446                     with self.vfs(b"eol.cache", b"w") as f:
   446                     with self.vfs(b"eol.cache", b"w") as f:
   447                         f.write(hgeoldata)
   447                         f.write(hgeoldata)
       
   448                     self.dirstate.write(self.currenttransaction())
   448                 except errormod.LockUnavailable:
   449                 except errormod.LockUnavailable:
   449                     # If we cannot lock the repository and clear the
   450                     # If we cannot lock the repository and clear the
   450                     # dirstate, then a commit might not see all files
   451                     # dirstate, then a commit might not see all files
   451                     # as modified. But if we cannot lock the
   452                     # as modified. But if we cannot lock the
   452                     # repository, then we can also not make a commit,
   453                     # repository, then we can also not make a commit,