# HG changeset patch # User Pierre-Yves David # Date 1489562938 25200 # Node ID 5d92107dfb9b726c10f550d0bc675a68f74cc2f1 # Parent 279cbde7bf3de719094fef46d0a083147fa6e606 tagmerge: use 'wvfs' instead of 'wfile' Method is about to be deprecated and the modern form is shorter. diff -r 279cbde7bf3d -r 5d92107dfb9b 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()