Hgk and cygwin
Joe Bruce
joe.bruce.psu at gmail.com
Wed Dec 27 21:26:34 UTC 2006
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?
>
>
> Hi Daniel,
>
> I just tried this with Cygwin (very recent version) and Mercurial 0.9.1.
> The 'hgk' script is able to launch 'hg' now, but I suffer from the resize
> bug.
>
> I even copied my 'geometry' values from my Linux ~/.gitk to my Cygwin
> ~/.gitk, but it starts up with all the canvas geometries messed up. When I
> close the window, ~/.gitk ends up with all the canvas geometries set to -1
> or -2 instead of the correct values. In fact, I can only resize the canvases
> if I first erase ~/.gitk. If the file exists, I get resize "handles" but
> they fail to move anything.
>
> I will try again with Mercurial 0.9.3, as I imagine that gitk / hgk has
> been updated since 0.9.1. I will post again once I try the new version...
>
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...
Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20061227/1872dde8/attachment-0002.html>
More information about the Mercurial
mailing list