hg convert - can't read from repo type

Ken Blake kblake2 at gmail.com
Tue Oct 30 18:50:00 CDT 2007


Ok, I've located the source of the problem but I don't know what to do about it.

The problem is in cvs.py, convert_cvs._connect().  It connects to the
cvs server
with the pserver connection type.  It sends an AUTH REQEST with a password
it gets from .cvspass.  It expects the response to be "I LOVE YOU" but
in my case
gets "I HATE YOU".  It then raises a NoRepo exception, but the calling routine
(converter) ignores these exceptions.  So at this point cvsps has been called,
which successfully connected to the server, the data structures built, but
because it can't authenticate, it aborts but doesn't print an error message
to let the user know of a problem.

I switched the order of _connect and _parse as I cannot see any
interdependencies and it seems to work on my test cvs repo.  Now at least
if fails quickly.

I tried commented out the authenticating part of _connect() but the creation
of the writep object seems to require it.

I added a debug print to converter when it catches an exception so at least
the error message is printed when running with --debug.

Still, I'm at a loss as to how to fix the authentication problem.  Running cvs
commands works fine.  I can do a cvs login.  cvsps runs ok.  Has anyone else
used convert with a cvs repository using pserver and needs a password?
Any suggestions on how to diagnose this?

Thanks,
Ken


More information about the Mercurial mailing list