Fixed an issue which caused the commit graph to be incomplete when pulling.
Added directional hints on relational queries to reduce ambiguity.