# HG changeset patch # User Pierre-Yves David # Date 2014-11-14 14:54:55 # Node ID 43f66ae57a66499e14bd0949d262ab9b5664f7f9 # Parent 991098579940552536d0a99fa3602dd1661aa388 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.) diff --git a/mercurial/transaction.py b/mercurial/transaction.py --- a/mercurial/transaction.py +++ b/mercurial/transaction.py @@ -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 = ''