Modified as per recent comments in pull request and discussion on IRC.
Added test changes for failure conditions for parseGotRevision