On 30.01.2008 18:27, Steve Borho wrote:
> On Wed, 2008-01-30 at 11:53 +0100, Adrian Buehlmann wrote:
>
> I really need to respin the NSI installer. I'm probably going to start
> copying the PyQt installer to my web-page since Riverbank has the nice
> tendency to break their old URLs at every minor release.
>
>> I do have directories "C:\Python25\Lib\site-packages\qct-1.5-py2.5.egg-info"
>> and "C:\Python25\Lib\site-packages\qctlib"
>>
>> How do I get that qct command? What am I missing?
>
> It looks like the qct plugin is not enabled. Do you still have a mix of
> installers on your machine?
Yep. Mercurial-NSI-0.9.5-0.9-py2.5.exe and TortoiseHg-0.2-p1.exe, both installed
at their default locations.
I was hoping to being able to switch between using them by deleting/setting
HGRCPATH=C:\Python25\mercurial\hgrc.d;C:\Documents and
Settings\adi\mercurial.ini
(deleting that var for using TortoiseHg, setting it for using NSI)
> At the least, you need to add to your
> Mercurial.ini:
>
> [extensions]
> qct=
>
> As a short-term fallback, you can switch to the built-in commit tool by
> setting (until you get qct fixed):
>
> [tortoisehg]
> commit = internal
>
My original Mercurial.ini, located at "C:\Documents and Settings\adi" contained
(email address obfuscated):
'''
# Generated by hg-config
[ui]
username = Adrian Buehlmann <adrian at cadifra.com>
ssh = C:\putty\plink.exe -ssh -i C:\putty\mercurial-adi.ppk
[web]
style = gitweb
[hooks]
precommit.username =
[smtp]
host = someinternalhostname
[tortoisehg]
view = hgk
commit = qct
vdiff = vdiff
[hgmerge]
default = kdiff3
'''
with that content, when calling "hgtk commit" on the command line I do get:
'''
> hgtk commit
Traceback (most recent call last):
File "C:\Python25\Scripts\hgtk.py", line 93, in <module>
main(sys.argv[1])
File "C:\Python25\Scripts\hgtk.py", line 86, in main
run(**opts)
File "C:\Documents and Settings\adi\My
Documents\Mercurial\tortoisehg\repos\tortoisehg-dev\hggtk\commit.py", line 244,
in run
if launch(root, files, cwd, True):
File "C:\Documents and Settings\adi\My
Documents\Mercurial\tortoisehg\repos\tortoisehg-dev\hggtk\commit.py", line 224,
in launch
ret = dispatch._dispatch(repo.ui, args)
File "C:\Python25\lib\site-packages\mercurial\dispatch.py", line 289, in
_dispatch
cmd, func, args, options, cmdoptions = _parse(lui, args)
File "C:\Python25\lib\site-packages\mercurial\dispatch.py", line 171, in
_parse
aliases, i = cmdutil.findcmd(ui, cmd, commands.table)
File "C:\Python25\lib\site-packages\mercurial\cmdutil.py", line 64, in
findcmd
raise UnknownCommand(cmd)
mercurial.cmdutil.UnknownCommand: qct
'''
and executing commit from the explorer context menu brings an error window with
the title "TortoiseHG" containing:
'''
Error executing hgproc
Traceback (most recent call last):
File "hgproc.py", line 110, in run_trapped
File "hgproc.py", line 105, in parse
File "hggtk\commit.pyc", line 234, in run
File "hggtk\commit.pyc", line 214, in launch
File "mercurial\dispatch.pyc", line 300, in _dispatch
File "mercurial\dispatch.pyc", line 173, in _parse
File "mercurial\cmdutil.pyc", line 64, in findcmd
UnknownCommand: qct
'''
if I do add
'''
[extensions]
qct=
'''
to the Mercurial.ini as mentioned above I get:
'''
> hgtk commit
*** failed to import extension qct: No module named qct
Traceback (most recent call last):
File "C:\Python25\Scripts\hgtk.py", line 93, in <module>
main(sys.argv[1])
File "C:\Python25\Scripts\hgtk.py", line 86, in main
run(**opts)
File "C:\Documents and Settings\adi\My
Documents\Mercurial\tortoisehg\repos\tortoisehg-dev\hggtk\commit.py", line 244,
in run
if launch(root, files, cwd, True):
File "C:\Documents and Settings\adi\My
Documents\Mercurial\tortoisehg\repos\tortoisehg-dev\hggtk\commit.py", line 224,
in launch
ret = dispatch._dispatch(repo.ui, args)
File "C:\Python25\lib\site-packages\mercurial\dispatch.py", line 289, in
_dispatch
cmd, func, args, options, cmdoptions = _parse(lui, args)
File "C:\Python25\lib\site-packages\mercurial\dispatch.py", line 171, in
_parse
aliases, i = cmdutil.findcmd(ui, cmd, commands.table)
File "C:\Python25\lib\site-packages\mercurial\cmdutil.py", line 64, in
findcmd
raise UnknownCommand(cmd)
mercurial.cmdutil.UnknownCommand: qct
'''
(note the additional line with the three stars)
and when doing commit from the context menu I get an error window with the title
"TortoiseHG" containing the text:
'''
Error executing hgproc
Traceback (most recent call last):
File "hgproc.py", line 110, in run_trapped
File "hgproc.py", line 105, in parse
File "hggtk\commit.pyc", line 234, in run
File "hggtk\commit.pyc", line 214, in launch
File "mercurial\dispatch.pyc", line 360, in _dispatch
File "mercurial\dispatch.pyc", line 413, in _runcommand
File "mercurial\dispatch.pyc", line 369, in checkargs
File "mercurial\dispatch.pyc", line 352, in <lambda>
File "hgext\qct.pyc", line 85, in launch_qct
File "qctlib\gui_logic.pyc", line 157, in __init__
SystemExit
'''
after setting
'''
[tortoisehg]
commit = internal
'''
(was "commit = qct" previously) I do get:
'''
> hgtk commit
*** failed to import extension qct: No module named qct
'''
and a simple commit dialog opens (same dialog appears when doing commit from the
context menu).
Am I correct in assuming that I should have a "qct.py" or "qct.exe", "qct.bat"
or "qct.cmd" somewhere in an install directory? But there is no such file under
"C:\Python25" and neither under "C:\Program Files\TortoiseHg".
If I do a search for files and directories containing "qct" in their name inside
"C:\Python25" I get:
C:\Python25\share\qct\
C:\Python25\Lib\site-packages\qct-1.5-py2.5.egg-info\
C:\Python25\Lib\site-packages\qctlib\
C:\Python25\share\qct\qct.1.html
(3 directories and a html file)
Inside "C:\Program Files\TortoiseHg" there is a archive file "library.zip" which
contains a folder "hgext" which has a file "qct.pyc" (but no "qct.py").
I also tried renaming the directory "C:\Program Files\TortoiseHg" so that its
content is no longer accessible from the path, but that didn't help either.
My folder "C:\Python25\Lib\site-packages\hgext" does not contain a "qct.py"
(shouldn't it?). A dir of that folder gives:
'''
> dir
Volume in drive C is Sys
Volume Serial Number is 8017-C29E
Directory of C:\Python25\Lib\site-packages\hgext
30.01.2008 11:09 <DIR> .
30.01.2008 11:09 <DIR> ..
21.08.2007 10:46 4'555 acl.py
21.08.2007 10:46 2'263 alias.py
21.08.2007 10:46 11'495 bugzilla.py
21.08.2007 10:46 1'391 children.py
30.01.2008 11:06 <DIR> convert
14.09.2007 09:56 8'280 extdiff.py
30.01.2008 11:09 8'106 extdiff.pyc
21.08.2007 10:46 3'810 fetch.py
20.10.2007 13:03 8'935 gpg.py
21.08.2007 10:46 9'205 graphlog.py
30.01.2008 11:09 7'379 graphlog.pyc
25.09.2007 10:34 11'223 hbisect.py
10.10.2007 15:13 12'122 hgk.py
14.09.2007 09:56 12'174 imerge.py
30.01.2008 11:09 14'324 imerge.pyc
14.09.2007 09:56 2'674 interhg.py
10.10.2007 15:13 83'900 mq.py
21.08.2007 10:46 10'397 notify.py
21.08.2007 10:46 3'173 parentrevspec.py
20.10.2007 13:06 16'586 patchbomb.py
21.08.2007 10:46 6'423 purge.py
14.09.2007 09:56 13'656 record.py
21.08.2007 10:46 22'172 transplant.py
21.08.2007 10:46 1'302 win32text.py
21.08.2007 10:46 14 __init__.py
30.01.2008 11:09 134 __init__.pyc
25 File(s) 275'693 bytes
3 Dir(s) 37'497'393'152 bytes free
'''
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss