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

Re: svnsync for parts of a repository

From: Henrik Sundberg <storangen_at_gmail.com>
Date: Fri, 21 Nov 2008 07:05:45 +0100

I have now succeeded with using svnsync for one directory in a large repository.
I can therefore provide answers some of my questions.

On Sat, Nov 15, 2008 at 8:03 PM, Henrik Sundberg <storangen_at_gmail.com> wrote:
<the text is snipped>
> 1) Will the sync operations stop on copy? Will it put a full copy of
> the first version copied into the chosen directory?

Yes. The revision which in the large repository just contained a copy
operation was changed inte a big add operation in the mirror.

> 2) How is ancestry for copies handled? If I copy the same file from
> another directory to the synced directory with two different names,
> will the mirror contain full versions of both copies?

I tested like this instead:
a) I copied a product to my mirrored directory, and svnsynced.
b) I deleted it from the mirrored directory.
c) I copied the same product to my mirrored directory again, and svnsynced.

The svnsync in a) took me 4 days (using file:/// at my laptop that I
had to disconnect now and then) and placed ~ 250 000 small files, and
one large (46 MB) in my computer.
The svnsync in c) placed another 25000 small files and another 46 MB
revision file on my disc.

> 3) Can only one directory be synced?
> Does this mean that I am supposed to mirror a directory containing
> trunk/tags/branches, if I want to have the tags mirrored for one
> subproject? As opposed to having trunk/tags as the top level of the
> repository and just mirror the trunk and tags for a subproject.
> Ie can I sync projA in a repository like: /root/projects/projA/{trunk/tags}
> but not in this kind of repository?: /root/{trunk/tags}/projects/projA

I still haven't found an answer to this one. I suspect only one
directory can be synced, since I cannot find a way to describe a multi
directory sync. It is therefore important to place the trunk/tags
directories on the product you want to mirror and not to place all
products in the same trunk and the same tags.

I later added the followup:
> I just created a mirror for a small folder in a large repository. The
> repository had 123000 revisions. Now I seem to be getting 246000 files
> to my computer. The logs contains all commit comments.

All the commit comments are there, but no files are mentioned if the
commit did not occur in the mirrored directory.

> Is there a way to avoid this?
> Is it possible to mirror a part of a repository to a public one,
> without making all (non-relevant) commit comments public?

I still wonder about this. But I won't be able to use svnsync for now
anyway due to the single directory limitation.

/$

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-21 07:06:07 CET

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.