addbackup: use the vfs for the backup destination too
The backup file location was always computed using the opener, bypassing the
'location' setting. (And making the feature broken.)
--- a/mercurial/transaction.py Thu Nov 13 11:17:36 2014 +0000
+++ b/mercurial/transaction.py Fri Nov 14 14:54:55 2014 +0000
@@ -208,7 +208,7 @@
vfs = self.opener
if vfs.exists(file):
filepath = vfs.join(file)
- backuppath = self.opener.join(backupfile)
+ backuppath = vfs.join(backupfile)
util.copyfiles(filepath, backuppath, hardlink=hardlink)
else:
backupfile = ''