mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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.)
This commit is contained in:
parent
cec71977a9
commit
70e9add6df
@ -208,7 +208,7 @@ class transaction(object):
|
||||
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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user