Last commit can be a valid revision too.
Fixing revision retrieval.
Adding --refetch option