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

Matt Mackall mpm at selenic.com
Wed Aug 8 10:02:14 CDT 2007


On Wed, Aug 08, 2007 at 12:10:14PM +0200, Francesco Perillo wrote:
> 
> >>
> >> 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'

Looks like you're the first person to try it on Windows. It's looking
for your .cvspass file to log into the pserver.

> 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

Looks like it's failing to connect to your pserver.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list