Example #1
0
func getRecord(i *revlog.Index, rs revlog.RevisionSpec) (r *revlog.Rec) {
	r, err := rs.Lookup(i)
	if err != nil {
		fatalf("%s", err)
	}
	return
}
Example #2
0
func (ra *repoAccess) clRec(rs revlog.RevisionSpec) (r *revlog.Rec, err error) {
	if ra.changelog == nil {
		log, err1 := ra.st.OpenChangeLog()
		if err1 != nil {
			err = err1
			return
		}
		ra.changelog = log
	}
	r, err = rs.Lookup(ra.changelog)
	return
}