Add 'id' command to show current revision/id

It can be useful to get current revision for repo (for example to generate some report showing project name and its current version).
I don't know similar commands for other VCS's.