I want to obtain the current Mercurial version from inside a Python hook. I
could just shell execute hg --version, but I thought I'd ask around for a
cheaper, more direct way. Is there any global function or constant that I
could use? If it matters, I'm on Mercurial 4.0 (Debian 9).
On Fri, Dec 25, 2020 at 08:04:14PM +0100, Ansis Māliņš wrote:
> I want to obtain the current Mercurial version from inside a Python hook. I
> could just shell execute hg --version, but I thought I'd ask around for a
> cheaper, more direct way. Is there any global function or constant that I
> could