Hgk and cygwin

Steve Borho steve at ageia.com
Fri Dec 22 16:46:00 CST 2006


On Friday 22 December 2006 2:37 pm, Andrei Vermel wrote:
> Works fine for me with tcl/tk from ActiveState.
>
> In c:\Mercurial I have:
> * hgk from current top level
> * hgk.cmd containing
> @C:\tcl\bin\wish c:\mercurial\hgk

To summarize:

hgk will work under windows if you:

1) Install Tcl/Tk
2) Rename (or copy) contrib/hgk to hgk.tcl
3) Add the path to hgk.tcl to Mercurial.ini
4a) Install the py2exe dist version of mercurial

== OR ==

4b) Install the python version (using setup.py install) and create this 
batch file below and put it into your path.

> * hg.bat containing
> @c:\Python24\python.exe c:\Python24\Scripts\hg %*

I just tried the 4b bit under cygwin and it *mostly* works, however the 
Tk widget geometries are all messed up.  A couple minutes dragging 
things around with the mouse made it happy.

But when I quit and restart, the widgets are screwed up again and this 
time they refuse to move.  I have to delete ~/.gitk and repeat step one 
in order to get a usable interface again.

Running hgk natively under Windows seems to work fine now.  Thanks a 
lot.

So... what is going to be the best way to bundle all of this together so 
that we can ship a functioning Mercurial+hgk for Windows?

Qct has it's own Windows distribution problems.  Open source Qt4 doesn't 
yet have a binary installer and PyQt4 requires Python 2.5, which isn't 
very common, so I plan to offer a binary release of Qct for Windows.  
Having a standalone qct.exe precludes using it as an extension, since 
the qct.py extension tries to import the qct python code directly.

The only workaround for this that I can think of is to combine the qct 
source into Mercurial and py2exe them together into a single hg.exe app 
that includes python25.dll and QtCore, etc.  I'm not sure if that's a 
politically correct thing to do (or even practical).

PS: Merry Christmas everyone

-- 
Steve Borho (steve at ageia.com)
http://www.borho.org/~steve/steveAgeia.asc
Key fingerprint = 3D9C 67D5 F426 4322 075B  0795 C9B2 C3A0 97D0 C090


More information about the Mercurial mailing list