Mercurial > hg-stable
changeset 23314:43f66ae57a66
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.)
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 14 Nov 2014 14:54:55 +0000 |
parents | 991098579940 |
children | 66275ecc73c1 |
files | mercurial/transaction.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 = ''