Re: cvs2svn: changed tag path after migration from CVS to SVN

Michael Haggerty <[email protected]> Tue, 30 Oct 2012 15:03:18 +0100
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On 10/30/2012 11:55 AM, Christoph Knopf wrote:
> thanks for the quick response. Ok, I try to explain the problem with text.
> 
> A customer stores a project in CVS, tagging in a directory named
> "versions". In this directory, you will see parts of the project like
> this:
> 
> versions/
>     Calculator/
>         Calculator version 1.0/
>         Calculator version 1.1/
>         Calculator version 2.0/
>     Coffee credit list/
>         Coffee credit list version 1.0/
>         Coffee credit list version 2.0/
>     ...

I don't know what that means: "tagging in a directory named 'versions'".
 CVS tags have nothing to do with directories.  Do you mean that the
customer created tags whose names include slashes, like

    cvs tag "versions/Calculator/Calculator version 1.0"

?  Or do you mean that the customer didn't tag the files using CVS
files, but rather made lots of directories within CVS and copied the
source tree each time?  Or are the directories that you list the results
of checking multiple working projects out of CVS?

What is the output of "cvs log"?  How are the first few directories in
the repository (i.e., under $CVSROOT) organized?

> Important to know, you have version 1.0 and 2.0 several times. No
> after making a dump and loading the project in a SVN repo, the tag
> tree is looking like this:
> 
> tag/
>     1.0/
>         Calculator/
>         Coffee credit list/
>         ....
>     1.1/
>         Calculator/
>         ....
>     2.0/
>         Calculator/
>         Coffee credit list/
>         ....
>     v_0_1_0/
>     v_00_01_00/
>    ...

This doesn't make sense either.  (1) I guess you are describing SVN
directory "tags", not "tag", and that there are also "trunk" and
"branches" directories but you have omitted them.  (2) CVS doesn't allow
tag names containing periods, so I have no idea how it is possible that
cvs2svn produced the output that you claim, unless you used a more
complicated invocation than you stated earlier.

> cvs2svn took found the the numbers 1.0, 1.5 and so on in the titles
> and placed them directly under the tag directory. Beneath that, it
> created the dir for Calculator, Coffee credit list ... etc.
> The customer used many different version titles, so this is mess,
> because now they don't know which part is the actual one.
> 
> Don't get me wrong, I'm fine with this new structure, having a
> overview over the tag releases in SVN. SVN is not CVS and I think they
> made a mistake in their naming convention.
> Question is: Is there a way cvs2svn creates a dump with the
> directory/naming structure of the CVS tag tree only?

I still think it is likely that you are looking for "multiproject
conversion", but your question is too nonsensical for me to be sure.  It
might be that you need to use more exotic cvs2svn features to get the
result that you want.

Michael

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

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

To unsubscribe from this discussion, e-mail: [[email protected]].