I have installed Mercurial as a Python package. Now 开发者_JS百科I want TortoiseHg to work with them. However, all versions of TortoiseHg are bundled with its own version of hg and Python libraries. How do I make sure that TortoiseHg is using Mercurial which I have installed?
I'm extending Mercurial and want to test if it works with TortoiseHg correctly
It is good to test compatibility with both official Mercurial binaries and TortoiseHg.
They are organized the same way. Namely, all Python binaries are stored in library.zip
So to make your extension working with either of these bundles, you need to include your extensions (either in .py
or .pyc
form) into library.zip
and configure the extensions in Mercurial.ini
.
While it may be possible to force TortoiseHg to use another Mercurial installation, it is better to offer users of your extension a way to use it without adding extra Mercurial installations to their systems. So you can just provide an instruction on how to integrate your extension into library.zip
.
精彩评论