localrepo: use 'wvfs' instead of 'wfile'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 15 Mar 2017 00:29:09 -0700
changeset 31416 1527ffe65f9f
parent 31415 5d92107dfb9b
child 31417 4cffaf8c4853
localrepo: use 'wvfs' instead of 'wfile' Method is about to be deprecated and the modern form is shorter.
mercurial/localrepo.py
--- 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()