[PATCH 4 of 5] eol: use 'wvfs' instead of 'wfile'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Mar 15 03:43:33 EDT 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1489563119 25200
#      Wed Mar 15 00:31:59 2017 -0700
# Node ID 6efb8f2d2453e33c3463045b9d5f9b0ff356e984
# Parent  80da55359b34584991814524f6a11eaa1a97b55f
# 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 6efb8f2d2453
eol: use 'wvfs' instead of 'wfile'

Method is about to be deprecated and the modern form is shorter.

diff --git a/hgext/eol.py b/hgext/eol.py
--- a/hgext/eol.py
+++ b/hgext/eol.py
@@ -223,7 +223,7 @@ def parseeol(ui, repo, nodes):
                 if node is None:
                     # Cannot use workingctx.data() since it would load
                     # and cache the filters before we configure them.
-                    data = repo.wfile('.hgeol').read()
+                    data = repo.wvfs('.hgeol').read()
                 else:
                     data = repo[node]['.hgeol'].data()
                 return eolfile(ui, repo.root, data)


More information about the Mercurial-devel mailing list