remote-hg: write tags in the appropriate branch