Any way to get Mercurial version from inside a Python hook?

2020-12-29 Thread Ansis Māliņš
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).

Re: Any way to get Mercurial version from inside a Python hook?

2020-12-29 Thread Joerg Sonnenberger
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