[issue1649] Convert: CVS module path with leading '.'
Carsten Grohmann
mercurial-bugs at selenic.com
Tue May 5 02:03:06 CDT 2009
New submission from Carsten Grohmann <carstengrohmann at gmx.de>:
Hi,
converting a whole repository fails with:
cvs server: cvs checkout: cannot find module
`./home/cvs/project_carsten/repository/scripts/cvs.mailloginfo.pl' - ignored
The script exists. I assume the error is the leading '.' It seems '.' means the
repository name. An absolute path is valid to accessing CVS repos.
It's possibly a logical bug in hgext/convert/cvs.py only.
line 353: args.append(self.cvsrepo + '/' + name)
Adding a leading '.' to an absolute path converts the path to a relative one.
Steps to reproduce:
===================
1. Checkout a repository with all modules inside. Use the absolute path to the
repository!
> mkdir cvs
> cd cvs
> cvs -d:pserver:carsten at localhost:/home/cvs/project_carsten/repository
checkout .
cvs checkout: Updating .
cvs checkout: Updating CVSROOT
U CVSROOT/checkoutlist
U CVSROOT/commitinfo
U CVSROOT/config
[...]
2. Convert the checkout directories
> /home/carsten/mercurial-1.2.1/hg convert .
assuming destination .-hg
using builtin cvsps
collecting CVS rlog
[...]
1459 changeset entries
connecting to :pserver:carsten at localhost:/home/cvs/project_carsten/repository
scanning source...
sorting...
converting...
1458 Initial revision
cvs server: cvs checkout: cannot find module
`./home/cvs/project_carsten/repository/scripts/cvs.mailloginfo.pl' - ignored
abort: unknown CVS response: error
More Information:
=================
> cd CVS
> cat Repository
.
> cat Root
:pserver:carsten at localhost:/home/cvs/project_carsten/repository
----------
messages: 9261
nosy: CarstenGrohmann
priority: bug
status: unread
title: Convert: CVS module path with leading '.'
topic: convert
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1649>
____________________________________________________
More information about the Mercurial-devel
mailing list