Mercurial > hg
changeset 31417:4cffaf8c4853
eol: use 'wvfs' instead of 'wfile'
Method is about to be deprecated and the modern form is shorter.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 15 Mar 2017 00:31:59 -0700 |
parents | 1527ffe65f9f |
children | fb1b5cd17664 |
files | hgext/eol.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/eol.py Wed Mar 15 00:29:09 2017 -0700 +++ b/hgext/eol.py Wed Mar 15 00:31:59 2017 -0700 @@ -223,7 +223,7 @@ 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)