Mercurial > hg
comparison hgext/eol.py @ 31328:ab45421285d0
eol: directly use repo.vfs.join
The 'repo.join' method is about to be deprecated.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 08 Mar 2017 16:51:36 -0800 |
parents | 1c518d69d994 |
children | 4cffaf8c4853 |
comparison
equal
deleted
inserted
replaced
31327:e59960ea8dcc | 31328:ab45421285d0 |
---|---|
312 self._eolmatch = util.never | 312 self._eolmatch = util.never |
313 return | 313 return |
314 | 314 |
315 oldeol = None | 315 oldeol = None |
316 try: | 316 try: |
317 cachemtime = os.path.getmtime(self.join("eol.cache")) | 317 cachemtime = os.path.getmtime(self.vfs.join("eol.cache")) |
318 except OSError: | 318 except OSError: |
319 cachemtime = 0 | 319 cachemtime = 0 |
320 else: | 320 else: |
321 olddata = self.vfs.read("eol.cache") | 321 olddata = self.vfs.read("eol.cache") |
322 if olddata: | 322 if olddata: |