mirror of
https://github.com/NixOS/nix
synced 2025-06-30 19:57:59 +02:00
Remove superfluous TreeInfo::rev field
This commit is contained in:
parent
b9d64f9318
commit
887730aab3
9 changed files with 36 additions and 38 deletions
|
@ -58,10 +58,6 @@ static TreeInfo parseTreeInfo(const nlohmann::json & json)
|
|||
else
|
||||
throw Error("attribute 'narHash' missing in lock file");
|
||||
|
||||
j = i2.find("rev");
|
||||
if (j != i2.end())
|
||||
info.rev = Hash((std::string) *j, htSHA1);
|
||||
|
||||
j = i2.find("revCount");
|
||||
if (j != i2.end())
|
||||
info.revCount = *j;
|
||||
|
@ -97,8 +93,6 @@ static nlohmann::json treeInfoToJson(const TreeInfo & info)
|
|||
nlohmann::json json;
|
||||
assert(info.narHash);
|
||||
json["narHash"] = info.narHash.to_string(SRI);
|
||||
if (info.rev)
|
||||
json["rev"] = info.rev->gitRev();
|
||||
if (info.revCount)
|
||||
json["revCount"] = *info.revCount;
|
||||
if (info.lastModified)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue