Returns the RevInfo for a revision ID, or panics if it's not found
(revid string)
| 275 | |
| 276 | // Returns the RevInfo for a revision ID, or panics if it's not found |
| 277 | func (tree RevTree) getInfo(revid string) (*RevInfo, error) { |
| 278 | info, exists := tree[revid] |
| 279 | if !exists { |
| 280 | return nil, errors.New("getInfo can't find rev: " + revid) |
| 281 | } |
| 282 | return info, nil |
| 283 | } |
| 284 | |
| 285 | // Returns the parent ID of a revid. The parent is "" if the revid is a root. |
| 286 | // Panics if the revid is not in the map at all. |
no outgoing calls