Rename snapshot.Content -> snapshot.Tree

This commit is contained in:
Alexander Neumann committed 2014-12-07 14:14:50 +01:00
1 parent 73be0d5b18
commit 202984a93f
6 files changed
+9 -9

No files matched your search

+3 -3
View File
@@ -384,7 +384,7 @@ func (arch *Archiver) LoadTree(path string, parentSnapshot backend.ID) (*Tree, e
return nil, arrar.Annotate(err, "load old snapshot")
}
if snapshot.Content == nil {
if snapshot.Tree == nil {
return nil, errors.New("snapshot without tree!")
}
@@ -394,7 +394,7 @@ func (arch *Archiver) LoadTree(path string, parentSnapshot backend.ID) (*Tree, e
return nil, err
}
oldTree, err = LoadTree(arch.ch, snapshot.Content)
oldTree, err = LoadTree(arch.ch, snapshot.Tree)
if err != nil {
return nil, arrar.Annotate(err, "load old tree")
}
@@ -520,7 +520,7 @@ func (arch *Archiver) Snapshot(dir string, t *Tree, parentSnapshot backend.ID) (
if err != nil {
return nil, nil, err
}
sn.Content = blob.ID
sn.Tree = blob.ID
// save bloblist
blob, err = arch.SaveJSON(backend.Map, arch.bl)