Support revision format rNNN.

I'm planning to change the revision format to rNNN from rev:NNN.