Fix sending diff commit information from context API

Review Request #8281 — Created July 12, 2016 and submitted — Latest diff uploaded

Information

Review Board
dvcs
96d739b...

Reviewers

The context API was only sending information about the commits when the
base-commit-id and tip-commit-id arguments were both present.
However, this is the opposite behaviour of what we desire. We do not
need information about commits when we already have it. Instead, we
require it when we know nothing about the commits.

Previously, the diff commit index would not update when switching
revisions. It now switches revisions correctly.