Rename field in Snapshot: Tree -> TreeID

This commit is contained in:
Alexander Neumann
2014-08-04 23:25:32 +02:00
parent 500f4f9997
commit b923a2065a
4 changed files with 5 additions and 5 deletions

View File

@@ -125,7 +125,7 @@ func commandBackup(repo *khepri.Repository, args []string) error {
}
sn := khepri.NewSnapshot(target)
sn.Tree = id
sn.TreeID = id
snid, err := sn.Save(repo)
if err != nil {

View File

@@ -127,7 +127,7 @@ func commandRestore(repo *khepri.Repository, args []string) error {
log.Fatalf("error loading snapshot %s", id)
}
err = restore_dir(repo, sn.Tree, target)
err = restore_dir(repo, sn.TreeID, target)
if err != nil {
return err
}