[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Is there a way to change a "delete+add" operation into a "move" operation in the repository ?

From: Jocelyn F <f.jocelyn_at_gmail.com>
Date: 2005-11-30 18:42:06 CET

Hi there,

I migrated a cvs repository to svn repository some times ago using cvs2svn.
When the CVS was still used, a file was moved to a place and moved back to
its original location

    src/folder/my_file.txt

moved to
   src/folder/subfolder/my_file.txt

and then moved back to (a few months later, and many revisions later)
   src/folder/my_file.txt

Now, I am using the svn repository (migration from the previous CVS repo)
and when I ask the logs on "my_file.txt", the log stops at the revision
corresponding at the last "move"

It seems cvs2svn did not recognize this "delete / add cvs operation" as a
file moving operation.

I found a way to fix this by dumping the repository, then fixing the
corresponding revision entry
using the
     Node-copyfrom-rev:
     Node-copyfrom-path:
and Load this back into a svn repository

I test it on a small test repository, and this seems to work fine.
But if there is another solution, using the svn tools for instance,
I would be more than happy because the dump of my real subversion repository
is really huge (severals Go).

So is there a way to "edit" the svn repository database to precise that a
"Delete + Add" operation was in fact a "move" operation ?
(maybe something similar to how we can edit logs in the past revisions) ?

Any answer will be appreciated
Jocelyn
Received on Wed Nov 30 18:54:06 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.