示例#1
0
文件: store.go 项目: knieriem/hgo
func BuildManifest(r *revlog.Rec, fb *revlog.FileBuilder) (m Manifest, err error) {
	err = fb.BuildWrite(nil, r)
	if err != nil {
		return
	}

	m, err = ParseManifestData(fb.Bytes())
	return
}
示例#2
0
文件: changelog.go 项目: knieriem/hgo
func BuildEntry(r *revlog.Rec, fb *revlog.FileBuilder) (e *Entry, err error) {
	err = fb.BuildWrite(nil, r)
	if err != nil {
		return
	}
	e, err = parseEntryData(fb.Bytes())
	if err == nil {
		e.Rec = r
		e.Id = r.Id().Node()
	}
	return
}