Where are TortoiseHg extensions stored?
I've recently used Perfarce extension with mercurial on a linux system (Ubuntu 10.4 server) and did some modification to it's code to fit my needs.
Now, I would like to do the same on Windows 7x64 (where I installed TortoiseHg). I know tortoise Hg comes with some bundled extensio开发者_如何转开发ns (perfarce included). I also know I can use a Mercurial.ini or hgrc file to enable extensions and specify the path to find them.
I suppose I could force a path to perfarce.py in my Mercurial.ini file (perfarce=path\to\extension) but since perfarce is already bundled with TortoiseHg installation, could I edit the bundled version? If so, where can I find it?
TIA
Alexandre
I realize this is not an answer to you exact question, but wouldn't it be better to stick perfarce.py
in an hg repo of its own and point to it in your Mercurial.ini?
That way you wouldn't have to worry about it ever again, not even when you will update TortoiseHg.
Edit
Ok, I fired up a Windows machine.
The perfarce extension is contained in TortoiseHg\library.zip\hgext, but it's a .pyo
file.
Frankly, I don't know if replacing the .pyo with an actual .py file would work. It probably would, since the pyo is just what the Python interpreter outputs when invoked with the -O
flag, but hey, I don't know much about Python.
I guess that trying is the only way to know for sure.
精彩评论