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

Re: Migrating data from one repo to another: timestamps

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 16 Sep 2009 12:30:20 -0500

On Sep 16, 2009, at 12:00, Kylo Ginsberg wrote:

> I'm preparing to move the bulk of repository A to repository B. I
> have this scripted via svnadmin dump/svndumpfilter/svnadmin load and
> it works, however I'm concerned about timestamps.
>
> The resulting repository no longer has increasing timestamps b/c
> repository A's timestamps were faithfully preserved when the revisions
> were appended to repository B. We use date-based checkouts and IIRC
> subversion does some variation of a binary search to translate dates
> into rev #s -- if so, this would clearly be broken by this new
> repository. I'm thinking about rewriting all the timestamps in the
> dump log before reloading it, but a couple questions:
>
> 1) Am I correct that, absent such re-timestamping, the resultant
> repository might break svn's date-based checkout feature?

As far as I know, yes.

> 2) Am I okay simply duplicating the same timestamp for all the
> revisions in this log? (I would just use the timestamp of the last
> revision prior to the 'svnadmin load'.)

I suggest you use svndumptool. It has a feature to interleave multiple
dumpfiles to keep their revisions in chronological order.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395655

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-16 19:31:14 CEST

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.