hg convert..... how does it work ?

Francesco Perillo perillo_f at camera.it
Wed Aug 8 05:10:14 CDT 2007


>>
>> Do "hg convert" needs to be run against a cvs checkout ??
>>     
>
> Yes. If you look at the code, it uses cvsps(1) to pull patchsets
> from the original CVS server (found in the Root files of a checked
> out copy).


Some progress but still no solution....

On XP (cvs is on a remote server inside an intranet, I access the 
firewall and create a ssh tunnel with putty, so I have to put "localhost"):

C:\tmp\hg2>hg convert jamb
assuming destination jamb-hg
initializing destination jamb-hg repository
connecting to :pserver:cvs at localhost:/export/cvs_rep
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 2ef14e29e538)
Traceback (most recent call last):
 File "hg", line 11, in ?
 File "mercurial\commands.pyc", line 3141, in run
 File "mercurial\commands.pyc", line 3138, in dispatch
 File "mercurial\cmdutil.pyc", line 38, in runcatch
 File "mercurial\cmdutil.pyc", line 379, in dispatch
 File "mercurial\cmdutil.pyc", line 432, in runcommand
 File "mercurial\cmdutil.pyc", line 388, in checkargs
 File "mercurial\cmdutil.pyc", line 373, in <lambda>
 File "hgext\convert\__init__.pyc", line 416, in _convert
 File "hgext\convert\__init__.pyc", line 26, in convertsource
 File "hgext\convert\cvs.pyc", line 26, in __init__
 File "hgext\convert\cvs.pyc", line 136, in _connect
 File "os.pyc", line 422, in __getitem__
KeyError: 'HOME'



On linux (on the same intranet of the CVS server)
C:~/tmp_cvs # hg convert JAMB
connecting to :pserver:cvs at 172.16.0.20:/export/cvs_rep
abort: JAMB: unknown repository type

of course JAMB/CVS directory exists....

I want to add that:
if I "cd JAMB ; cvsps" I get a listi of the patchsets correctly

if I "cvsps JAMB" I get an error....

Francesco
and if I "cvsps JAMB"


More information about the Mercurial mailing list