Use md5 hashes of perforce and bzr diffs instead of including the full text.

This shortens our test file a bit by checking that the hash of the diff matches
what we expect, rather than just comparing long text strings.

Testing done: Ran unit tests.

Reviewed at https://reviews.reviewboard.org/r/5115/