# HG changeset patch # User Pierre-Yves David # Date 2017-03-09 00:53:39 # Node ID e712a9c35fd8b52351c231adfaecb376b1a48de1 # Parent 102d3a30582c8345a6ae3f1d3f34633a9c256919 repair: directly use repo.vfs.join The 'repo.join' method is about to be deprecated. diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -886,7 +886,7 @@ def _upgraderepo(ui, srcrepo, dstrepo, r 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