get_revision_id: set version for uncommited changes to be 'dirty'