Merge pull request #252 from restic/repack-blobs

WIP: Repack blobs
This commit is contained in:
Alexander Neumann
2015-11-09 20:57:57 +01:00
15 changed files with 703 additions and 152 deletions

View File

@@ -1,5 +1,7 @@
package backend
import "sort"
// IDSet is a set of IDs.
type IDSet map[ID]struct{}
@@ -36,6 +38,8 @@ func (s IDSet) List() IDs {
list = append(list, id)
}
sort.Sort(list)
return list
}
@@ -66,5 +70,5 @@ func (s IDSet) String() string {
return "{}"
}
return "{" + str[1:len(str)-2] + "}"
return "{" + str[1:len(str)-1] + "}"
}