(revid string)
| 341 | } |
| 342 | |
| 343 | func (tree RevTree) isLeaf(revid string) bool { |
| 344 | if !tree.contains(revid) { |
| 345 | return false |
| 346 | } |
| 347 | for _, info := range tree { |
| 348 | if info.Parent == revid { |
| 349 | return false |
| 350 | } |
| 351 | } |
| 352 | return true |
| 353 | } |
| 354 | |
| 355 | // Finds the "winning" revision, the one that should be treated as the default. |
| 356 | // This is the leaf revision whose (!deleted, generation, hash) tuple compares the highest. |