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

Re: Merging 2 repositories

From: Mark Benedetto King <mbk_at_lowlatency.com>
Date: 2004-02-18 20:22:00 CET

On Wed, Feb 18, 2004 at 09:31:54AM -0500, John Peacock wrote:
> Mark Benedetto King wrote:
> >This strategy worries me because svn assumes that revisions occur at
> >monotonically increasing times.
>
> I don't understand your concerns. Each module is assumed to be completely
> independent, and all of it's revisions will be loaded together. Searching
> by date repository-wide would make no sense in this scenario (nor in any
> that I can think of short of single project repositories).
>
> Please clarify...

Okay, let's say you have two dump files, from previously disjoint repositories
that you want to merge:

/trunk/a/
r1 @ 2004-01-01
r2 @ 2004-01-02
r3 @ 2004-01-03

/trunk/b/
r1 @ 2004-01-01
r2 @ 2004-01-02
r3 @ 2004-01-03

You load them together and get

/trunk/a/ and /trunk/b/
r1 @ 2004-01-01
r2 @ 2004-01-02
r3 @ 2004-01-03
r4 @ 2004-01-01
r5 @ 2004-01-02
r6 @ 2004-01-03

You then do "svn log -r {2004-01-02:HEAD} .../trunk"

The date-revision mapper will determine that r2 is the revision
associated with 2004-01-02, and will then show r2, r3, r4, r5, and r6
in the output. Note that r4 should not be shown, since it is before
2004-01-02.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 18 20:45:43 2004

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.