List dependencies with the right branches