experimental java program for version 0 to get the first revision affecting a given string.