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

Re: Preserve history during import

From: Michael Schierl <schierlm_at_gmx.de>
Date: Tue, 29 Jan 2013 19:05:58 +0100

Hello,

Am 29.01.2013 18:00, schrieb C M:
> Is there a way to preserve file history (creation date, owner, etc)
> during an import from another CM system into SVN?

Yes.

> There doesn't seem to be any options to set in the GUI import feature.

The import feature is designed to quickly import a vast directory
structure that was previously unversioned, not to migrate a repository
from another SCM to Subversion.

> Is there a command line alternative?

There are several ones, mainly depending on what SCM you are coming from
and what access you have to the server.

Basically it boils down to two different approaches:

1. Have some tool convert the old SCM files (either directly from the
database or as a client) to a so-called SVN dumpfile. Then you can use
the "svnadmin" tool on the SVN server to import that dumpfile into a new
(or an existing) repository. There are lots of tools for handling
dumpfiles, so if you have a VSS project that later got "migrated" to CVS
without history, you can convert both the VSS dump and the CVS
repository to a dumpfile each and then stitch them together to form a
continuous history.

2. Have a tool that checks out each version of the old SCM and then
commits it into SVN. After the commit is done, it edits the revprops to
reflect the original author and date. That requires that editing of
revprops is enabled on the server (for the user who performs the
conversion). While it is technically possible to use TortoiseSVN for
that (the log viewer provides a context menu to view and edit revision
properties), you usually use specialized tools for this. This approach
is usually slower than the direct dumpfile import, but does not require
that many permissions on the server, and for some SCMs it is the only
approach available.

As a hybrid approach, there is the "svnrdump" tool that can be used to
remotely dump and load dumpfiles into a SVN repository, basically
following strategy 2 to get a file from strategy 1 into (or out of) the
server.

Most of this (except actually using TortoiseSVN to update revprops) is
off-topic here - you might have more luck on the Subversion users
mailing list.

Regards,

Michael

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3046603

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-01-29 19:06:11 CET

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

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