Patchwork [10,of,20] eol: directly use repo.vfs.join

login
register
mail settings
Submitter Pierre-Yves David
Date March 12, 2017, 2:45 p.m.
Message ID <d59fed8faa12306ec821.1489329944@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19155/
State Accepted
Headers show

Comments

Pierre-Yves David - March 12, 2017, 2:45 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1489020696 28800
#      Wed Mar 08 16:51:36 2017 -0800
# Node ID d59fed8faa12306ec821b3191ff36a6a313fdaf6
# Parent  4bf8c226e796484a748e60f7f6c9c95e17b3b3df
# EXP-Topic vfs.cleanup
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r d59fed8faa12
eol: directly use repo.vfs.join

The 'repo.join' method is about to be deprecated.

Patch

diff --git a/hgext/eol.py b/hgext/eol.py
--- a/hgext/eol.py
+++ b/hgext/eol.py
@@ -314,7 +314,7 @@  def reposetup(ui, repo):
 
             oldeol = None
             try:
-                cachemtime = os.path.getmtime(self.join("eol.cache"))
+                cachemtime = os.path.getmtime(self.vfs.join("eol.cache"))
             except OSError:
                 cachemtime = 0
             else: