changeset 31333:e712a9c35fd8

repair: directly use repo.vfs.join The 'repo.join' method is about to be deprecated.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 08 Mar 2017 16:53:39 -0800
parents 102d3a30582c
children b589f5b953f4
files mercurial/repair.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/repair.py	Wed Mar 08 16:53:32 2017 -0800
+++ b/mercurial/repair.py	Wed Mar 08 16:53:39 2017 -0800
@@ -886,7 +886,7 @@
     backupvfs = vfsmod.vfs(backuppath)
 
     # Make a backup of requires file first, as it is the first to be modified.
-    util.copyfile(srcrepo.join('requires'), backupvfs.join('requires'))
+    util.copyfile(srcrepo.vfs.join('requires'), backupvfs.join('requires'))
 
     # We install an arbitrary requirement that clients must not support
     # as a mechanism to lock out new clients during the data swap. This is