[log] Fix wrong collapse branch nodes.
[log] Add support of getContainingBranches method.