1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 06:01:00 +01:00

Used Rsync for reverting state.

This commit is contained in:
Wouter den Breejen 2007-10-17 11:16:57 +00:00
parent 138973a6d5
commit 84d00db70b
5 changed files with 33 additions and 71 deletions

View file

@ -1665,7 +1665,7 @@ void unShareStateTxn(const Transaction & txn, const Path & path, const bool bran
//Copy if necessary
if(branch){
rsyncPaths(sharedWithOldPath, path);
rsyncPaths(sharedWithOldPath, path, true);
}
//Restore the latest snapshot (non-recursive) made on this statepath