Mercurial > hg > mercurial-source
changeset 23912:5eb3541f907e
transaction: use 'util.copyfile' for creating backup
Using 'copyfile' (single file) instead of 'copyfiles' (tree) will ensures
destination file will be overwritten. This will prevent some abort if backup
file are left in place for random reason.
It also seems more correct.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 05 Jan 2015 12:44:15 -0800 |
parents | 4e451d1359de |
children | 13268fde4c4d |
files | mercurial/transaction.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff