As far as I can tell, the issue was unrelated to the name of the tree-root. TREE_ROOT or ROOT_ID is not hardcoded anywhere. Instead, this appears to be a problem of failing to insert inventories in topological order.
As far as I can tell, the issue was unrelated to the name of the tree-root. TREE_ROOT or ROOT_ID is not hardcoded anywhere. Instead, this appears to be a problem of failing to insert inventories in topological order.