remote-hg: add version checks to the marks