Transparently upgrade marks-hg from integer revision to SHA1, closes #16

This extends pull request #51