setlocalversion: update mercurial tag parsing