Hgk and cygwin

Steve Borho steve at ageia.com
Wed Dec 27 15:49:18 CST 2006


On Wednesday 27 December 2006 15:26, Joe Bruce wrote:
> On 12/27/06, Joe Bruce <joe.bruce.psu at gmail.com> wrote:
> > On 12/27/06, Daniel Santa Cruz <byteshack at gmail.com> wrote:
> > > The solution above works as long as you want to have multiple installs
> > > of mercurial (one under windows and one under cygwin).  After fiddling
> > > with it a bit more, I got hgk to work wonderfully with cygwin (read:
> > > with no funky resize bug at startup) with this setup:
> > >
> > > * FILE: ~/.hgrc
> > > [extensions]
> > > hgext.hgk =
> > >
> > > [hgk]
> > > path=~/src/hg/mylocal/contrib/hgk
> > >
> > > * FILE: hg.bat  (put this file on a folder that is on your windows
> > > path) @echo off
> > > c:\local\software\cygwin\bin\bash -c "hg %*"
> > >
> > >
> > > Yes... I know... kinda dirty.  But, no extra magic required.  Hgk
> > > works as advertised.  Can anyone else see if they can reproduce this?

<snip>

> I am sorry to report that this behavior is identical with Mercurial 0.9.3.
> If I start with no ~/.gitk, I get a tiny window that I can resize and use.
> When I exit, ~/.gitk is created with sane values. However, if I do another
> 'hg view', I have an unusable window (resize does not work) and ~/.gitk
> will then have -1 and -2 geometry values.
>
> Any suggestions on the hgk / gitk resize bug? I haven't really looked at
> hgk to see how it works, since I don't know Tcl. It would be nice to have
> 'hg view' on Cygwin as well as on Linux...

Could this be a side-effect of having both cygwin Tcl and native version of 
ActiveState Tcl installed?  I wonder if the ActiveState version is somehow 
conflicting with the cygwin version.

Running the exact same hgk script outside of cygwin will run correctly without 
those layout problems.

-- 
Steve Borho (steve at ageia.com)


More information about the Mercurial mailing list