Re: cvs2svn KeyError 1.1.1

Michael Haggerty <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On 04/14/2011 01:25 AM, Andersen, Krista wrote:
> Hi,
> 
>  
> 
> I’m new to using cvs2svn and have hit an error that I hope you can help
> me work around.  We are using cvs2svn v2.3.0 and have also tried the
> trunk version at v2.4.0 r5342.  Both versions result in the same error:
> KeyError: '1.1.1' … or more precisely the command and output are pasted
> below.
> 
>  
> 
> Although there are KeyErrors in the archives - they appear to be on
> older cvs2svn releases.  I did not find any suggestions there that fix
> our error.
> 
>  
> 
> The output pasted below is from a conversion attempt of a stripped down
> version of my CVS repo – after using destroy_repository.py  and
> shrink_test_case.py.  I looked in the remaining file but I do not see a
> corruption that I can recognize.

Thanks for the excellent problem report.  It is so rare that people
include all the information that is needed to diagnose a problem.

The file included in your bug report has the following header:

head	1.1;
branch	1.1.1;
access;
symbols;
locks; strict;
comment	@# @;

This means that the default branch is set to the vendor branch, 1.1.1.
But there is no actual vendor branch in the file (e.g., no revision
1.1.1.1).  Indeed, if I try to check this file out of the repository I
get a warning:

$ cvs -d $EXAMPLE/cvsDESTROY co .
cvs checkout: Updating .
cvs checkout: Updating CVSROOT
cvs checkout: Updating dir010
cvs checkout: Updating dir010/dir109
cvs checkout: Updating dir010/dir109/dir1768
cvs checkout: Updating dir010/dir109/dir1768/dir109
cvs checkout: nothing known about `dir010/dir109/dir1768/dir109/file6217'

I'm not sure how this situation arose, but you can fix it by
hand-editing the file to remove the "branch 1.1.1;" line.  Perhaps there
is a CVS command that will do the same thing; maybe something involving
"cvs admin -b", but that command doesn't seem to work on a file that
cannot be checked out.

The error message that cvs2svn outputs in this situation should
definitely be improved.

Michael

-- 
Michael Haggerty
[email protected]
http://softwareswirl.blogspot.com/

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2719647

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.