##// END OF EJS Templates
vfs: use 'vfs' module directly in 'mercurial.repair'...
Pierre-Yves David -
r31232:254f9832 default
parent child Browse files
Show More
@@ -26,6 +26,7 b' from . import ('
26 revlog,
26 revlog,
27 scmutil,
27 scmutil,
28 util,
28 util,
29 vfs as vfsmod,
29 )
30 )
30
31
31 def _bundle(repo, bases, heads, node, suffix, compress=True):
32 def _bundle(repo, bases, heads, node, suffix, compress=True):
@@ -882,7 +883,7 b' def _upgraderepo(ui, srcrepo, dstrepo, r'
882 ui.write(_('data fully migrated to temporary repository\n'))
883 ui.write(_('data fully migrated to temporary repository\n'))
883
884
884 backuppath = tempfile.mkdtemp(prefix='upgradebackup.', dir=srcrepo.path)
885 backuppath = tempfile.mkdtemp(prefix='upgradebackup.', dir=srcrepo.path)
885 backupvfs = scmutil.vfs(backuppath)
886 backupvfs = vfsmod.vfs(backuppath)
886
887
887 # Make a backup of requires file first, as it is the first to be modified.
888 # Make a backup of requires file first, as it is the first to be modified.
888 util.copyfile(srcrepo.join('requires'), backupvfs.join('requires'))
889 util.copyfile(srcrepo.join('requires'), backupvfs.join('requires'))
General Comments 0
You need to be logged in to leave comments. Login now