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

Re: svnsync with non rooted repository?

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-10-26 17:42:43 CEST

On 10/26/06, A. M. <cuberootva@gmail.com> wrote:
> Hello,
>
> We're trying to use svnsync to mirror a portion of a repository that hosts
> MANY projects. It appears, however, that svnsync is only capable of checking
> out the _entire_ repository. (The actual scenario is that we're trying to
> get a local copy of a project's code so that we can use it with Trac's SCM
> for subversion.) Is it expected that svnsync will ever be able to mirror
> only a portion of a repository?
>
> Another question, would hacking the svnsync tool's source code to do this
> sort of thing be fairly straight forward?

It wouldn't be impossible, depending on your actual goal. Just making
svnsync mirror a subtree in a repository, but still writing the
results into an initially empty repository that only ever contains
that subtree would be pretty easy. You'd just have to make it keep
track of the subtree to use, and have it insert empty revisions for
commits to the source repository that are outside that subtree,
otherwise the revision numbers would be off.

If you wanted to do something where you mirror a portion of one
repository into a directory in another repository where commits are
going on outside of that subdirectory, it's more complex. You need a
way to keep track of the mapping between revision numbers in the
destination repository and the source repository. Again, not
impossible, but harder to do, especially without storing that metadata
outside the repository someplace.

I don't know of anyone working on either of those tasks at the moment,
although volunteers are always welcome.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 26 17:44:03 2006

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.