tagmerge: use 'wvfs' instead of 'wfile'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 15 Mar 2017 00:28:58 -0700
changeset 31415 5d92107dfb9b
parent 31414 279cbde7bf3d
child 31416 1527ffe65f9f
tagmerge: use 'wvfs' instead of 'wfile' Method is about to be deprecated and the modern form is shorter.
mercurial/tagmerge.py
--- a/mercurial/tagmerge.py	Wed Mar 15 00:28:21 2017 -0700
+++ b/mercurial/tagmerge.py	Wed Mar 15 00:28:58 2017 -0700
@@ -169,7 +169,7 @@
     # finally we can join the sorted groups to get the final contents of the
     # merged .hgtags file, and then write it to disk
     mergedtagstring = '\n'.join([tags for rank, tags in finaltags if tags])
-    fp = repo.wfile('.hgtags', 'wb')
+    fp = repo.wvfs('.hgtags', 'wb')
     fp.write(mergedtagstring + '\n')
     fp.close()