You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Urs Thuermann <ur...@isnogud.escape.de> on 2006/06/08 07:35:36 UTC

cvs2svn and renamed files

I have converted a CVS repository to SVN using cvs2svn and things
worked like expected.  Only one additional feature would be really
nice to have:  In the CVS repository I have renamed a file like this

    mv foo bar; cvs rm foo; cvs add bar

Of course, bar revision numbers start at 1.1 and in cvs log bar, I
don't see the log messages for foo.  Unlike with SVN, where

    svn mv foo bar; svn log bar

will show the whole history of the file.  When converting with
cvs2svn, the files foo and bar are not connected in the new
repository.  I would be nice to be able to tell cvs2svn, that I have
renamed foo to bar in some specific revision, so that it can use this
SVN feature in the newly created repository.  Is there a way to
achieve this?

urs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: cvs2svn and renamed files

Posted by Urs Thuermann <ur...@isnogud.escape.de>.
Bhuvaneswaran <bh...@ubuntu.com> writes:

> If you expect similar behaviour (ie.. you are not bothered about
> history) in svn, you can do this:
> 
>  $ cp foo bar; svn rm foo; svn add bar

You misunderstood my mail.  I don't want the CVS behavior in SVN, but
I want to fix CVS' shortcoming when converting from CVS to SVN.  I
want the converted repository to look like I had used the svn move
feature which was (and is) unavailable in CVS which I have used before
converting.

urs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: cvs2svn and renamed files

Posted by Bhuvaneswaran <bh...@ubuntu.com>.
>     mv foo bar; cvs rm foo; cvs add bar
>
> Of course, bar revision numbers start at 1.1 and in cvs log bar, I
> don't see the log messages for foo.  Unlike with SVN, where

The move happens at the filesystem level. The "foo" file is removed
and "bar" file is added. The CVS does not link these two files.

>     svn mv foo bar; svn log bar
>
> will show the whole history of the file.  When converting with
> cvs2svn, the files foo and bar are not connected in the new

If you expect similar behaviour (ie.. you are not bothered about
history) in svn, you can do this:

 $ cp foo bar; svn rm foo; svn add bar

-- 
Regards,
Bhuvaneswaran
www.symonds.net/~bhuvan/
GPG: 0x7A13E5B0

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: cvs2svn and renamed files

Posted by Urs Thuermann <ur...@isnogud.escape.de>.
"Garrett Rooney" <ro...@electricjellyfish.net> writes:

> No, currently there is not.  By the way, this question really belongs
> on a cvs2svn mailing list, not a generic subversion mailing list.

I wasn't aware of a cvs2svn mailing list and I've lots of questions
here concerning conversion to and from other versioning systems.

Just to end this thread here: On the cvs2svn IRC, Michael Haggerty
suggested a solution which I applied successfully.  Use --dump-only
option to cvs2svn to produce a SVN dump file, then edit a couple of
lines by hand, and load the dump file into a newly created repository.

After studying the dump file format, I found this quite easy (but
probably a bit more difficult to do automatically by cvs2svn): Delete
the "Prop-content-length" line and the matching property section,
adjust the "Context-Length" value accordingly and add the
"Node-copyfrom-rev" and "Node-copyfrom-path" lines.

urs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: cvs2svn and renamed files

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 08 Jun 2006 09:35:36 +0200, Urs Thuermann <ur...@isnogud.escape.de> wrote:
> I have converted a CVS repository to SVN using cvs2svn and things
> worked like expected.  Only one additional feature would be really
> nice to have:  In the CVS repository I have renamed a file like this
>
>     mv foo bar; cvs rm foo; cvs add bar
>
> Of course, bar revision numbers start at 1.1 and in cvs log bar, I
> don't see the log messages for foo.  Unlike with SVN, where
>
>     svn mv foo bar; svn log bar
>
> will show the whole history of the file.  When converting with
> cvs2svn, the files foo and bar are not connected in the new
> repository.  I would be nice to be able to tell cvs2svn, that I have
> renamed foo to bar in some specific revision, so that it can use this
> SVN feature in the newly created repository.  Is there a way to
> achieve this?

No, currently there is not.  By the way, this question really belongs
on a cvs2svn mailing list, not a generic subversion mailing list.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org