remote-hg: add custom local tag write code