A trunk id recorded relative to its own change resolves to that change.
(change_id: NodeId, raw: TrunkId)
| 188 | |
| 189 | /// A trunk id recorded relative to its own change resolves to that change. |
| 190 | fn resolve_trunk(change_id: NodeId, raw: TrunkId) -> TrunkId { |
| 191 | if raw.change_id().is_root() { |
| 192 | TrunkId::new(change_id, raw.file_idx()) |
| 193 | } else { |
| 194 | raw |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | /// A branch id recorded relative to its own change resolves to that change. |
| 199 | fn resolve_branch(change_id: NodeId, raw: BranchId) -> BranchId { |