mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 04:00:59 +01:00
Fixed bugs in revertToRevision and getSharedWithPathSetRecTxn. Users can now also revert to older revisions.
This commit is contained in:
parent
094c69ad19
commit
68cb244c90
10 changed files with 69 additions and 31 deletions
|
|
@ -579,13 +579,11 @@ static void performOp(Source & from, Sink & to, unsigned int op)
|
|||
}
|
||||
|
||||
case wopRevertToRevision: {
|
||||
Path componentPath = readString(from);
|
||||
Path derivationPath = readString(from);
|
||||
Path statePath = readString(from);
|
||||
unsigned int revision_arg = readBigUnsignedInt(from);
|
||||
bool recursive = readInt(from) == 1;
|
||||
startWork();
|
||||
store->revertToRevision(componentPath, derivationPath, statePath, revision_arg, recursive);
|
||||
store->revertToRevision(statePath, revision_arg, recursive);
|
||||
stopWork();
|
||||
writeInt(1, to);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue