func getRecord(i *revlog.Index, rs revlog.RevisionSpec) (r *revlog.Rec) { r, err := rs.Lookup(i) if err != nil { fatalf("%s", err) } return }
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 }