Returns the parent ID of a revid. The parent is "" if the revid is a root. Panics if the revid is not in the map at all.
(revid string)
| 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. |
| 287 | func (tree RevTree) getParent(revid string) string { |
| 288 | info, err := tree.getInfo(revid) |
| 289 | if err != nil { |
| 290 | return "" |
| 291 | } |
| 292 | return info.Parent |
| 293 | } |
| 294 | |
| 295 | // Returns the leaf revision IDs (those that have no children.) |
| 296 | func (tree RevTree) GetLeaves() []string { |