Added handling of flag newest_tag for mercurial and cvs