Transaction identifier
For repository caches invalidation in HGitaly, we'll need a transaction identifier. This could be something as simple as a random UUID.
At some point, Mercurial will grow up something like this, and we'll then be able to reuse it. Meanwhile, it's fairly simple to do it ourselves.