changeset 31425:1527ffe65f9f

localrepo: 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:29:09 -0700
parents 5d92107dfb9b
children 4cffaf8c4853
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Mar 15 00:28:58 2017 -0700
+++ b/mercurial/localrepo.py	Wed Mar 15 00:29:09 2017 -0700
@@ -691,11 +691,11 @@
             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()