Bug 964071: Make getLatestRev return a long rev, so it compares better with previously built revisions. r=bhearsum