hgk on windows

Sean schliden at gmail.com
Thu Jul 5 21:45:12 CDT 2007


Evan,

I had view working on another windows machine with a full tcl install,
but this single exe approach looked good..

I followed your instruction and it began to work, but then tclkit threw:

localtime failed (clock value may be too large/small to represent)
localtime failed (clock value may be too large/small to represent)
    while executing
"GetDateFields $clockval  $TZData($timezone)  2299161"
    (procedure "::tcl::clock::formatproc'%Y-%m-%d %H:%M:%S'C" line 4)
    invoked from within
"$formatter $clockval $timezone"
    (procedure "::tcl::clock::format" line 75)
    invoked from within
"::tcl::clock::format -36000 -format {%Y-%m-%d %H:%M:%S}"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 [info level 0]"
    (procedure "::tcl::clock::format" line 4)
    invoked from within
"clock format $audate -format "%Y-%m-%d %H:%M:%S""
    (procedure "parsecommit" line 64)
    invoked from within
"parsecommit $id $cmit 1 [lrange $ids 1 end]"
    (procedure "getcommitlines" line 63)
    invoked from within
"getcommitlines fileed5ee0"

Any ideas ?

TIA

Sean

On 6/30/07, Evan Powers <evan.powers+hg at gmail.com> wrote:
> On 6/28/07, Ville M. Vainio <vivainio at gmail.com> wrote:
> > [extensions]
> > hgext.hgk =
> > [hgk]
> > path=c:/mercurial/hgext/hgk.py
>
> The import problem is because of a minor misunderstanding:
>
>     [extensions]
>     hgext.hgk = path/to/hgk.py
>     [hgk]
>     path="c:\path\to\hgk.cmd"
>
> Since you've put hgk.py in the hgext directory, you can probably get
> away with just "hgext.hgk=".
>
> Of course, you'll still need Tcl; I recommend TclKit since it's a
> single .exe file which you don't need to install.
>     http://www.equi4.com/tclkit/
>
> So, I drop tclkit-win32.exe, contrib/hgk, and hgext/hgk.py into the
> Mercurial install directory, then write a quick batch file, hgk.cmd,
> and put it there too:
>     @set HG=c:\path\to\hg.exe
>     @"c:\path\to\tclkit-win32.exe" "c:\path\to\hgk" %*
>
> After that everything works fine for me.
>
> - Evan
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>


More information about the Mercurial mailing list