Include graph of git log and node info on error

To debug test failures include a graph git log of the generated tree
along with the list of nodes and corresponding commit ids.

Change-Id: Ia995dee92b91dc4e8e7b1b3e49b96118619c36ad
Merge "Include graph of git log and node info on error"