[PATCH 3 of 5] localrepo: use 'wvfs' instead of 'wfile'
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Wed Mar 15 03:43:32 EDT 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1489562949 25200
# Wed Mar 15 00:29:09 2017 -0700
# Node ID 80da55359b34584991814524f6a11eaa1a97b55f
# Parent facaf8ca3cea37059909cf61140bed0f6ae379e6
# 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 80da55359b34
localrepo: use 'wvfs' instead of 'wfile'
Method is about to be deprecated and the modern form is shorter.
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -689,11 +689,11 @@ class localrepository(object):
return
try:
- fp = self.wfile('.hgtags', 'rb+')
+ fp = self.wvfs('.hgtags', 'rb+')
except IOError as e:
if e.errno != errno.ENOENT:
raise
- fp = self.wfile('.hgtags', 'ab')
+ fp = self.wvfs('.hgtags', 'ab')
else:
prevtags = fp.read()
More information about the Mercurial-devel
mailing list