Fix querying for small revision numbers.

If you searched for, say, revision 1, you'd get every revision that
started with a 1.  That's not what you wanted, so now we match on the
entire revision.