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

Re: One source code structure but two SVN repositories

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 15 Oct 2008 20:29:19 -0400

If you are doing work that will take more than a few days to do, it
really should be branched. Subversion does handle file moves and
copies, so it can still handle tracking the changes between two *.java
files on different branches even if they now sit in two different
directories.

So, the best bet is to create a Maven branch, do your reconfiguring
there, and then once you get everything the way you want, move those
changes back to the trunk.

The only question is how Subversion handles merging directory
differences between two branches. If Subversion can't handle merging
directory differences, you might have some trouble moving your changes
off of the Maven branch and back onto trunk.

--
David Weintraub
qazwart_at_gmail.com
On Wed, Oct 15, 2008 at 9:55 AM, Stefaniuk Marcin
<Marcin.Stefaniuk_at_disc.com.pl> wrote:
> Is it possible to has one repository with source code but also visible in
> different structure by another "SVN repository"?
>
>
>
> Let me explain my concept. In my company we are working on changing source
> code layout. We are adjusting it to Maven guidelines. So each component has
> added src/main/java folder structure before module sources itself. Because
> whole process will take few months my idea is to keep original structure of
> sources but create second repository mapped to first one using mod_rewrite.
> There will be several folders mapped in such manner. All write commands I
> suppose that can be passed using svn_mod_proxy.
>
>
>
> Structures overview looks as follows:
>
>
>
> master-root
>
> +- component1
>
> |  +- file1
>
> |  +- file2
>
> |  +- …
>
> +- component2
>
> |  +- …
>
>
>
> slave-root
>
> +- component1
>
> |  +- src
>
> |     +- main
>
> |        +- java
>
> |           + file1
>
> |           + file2
>
> |           + …
>
> +- component2
>
> |  +- src
>
> |     +- main
>
> |        +- java
>
> |           + …
>
>
>
> Mapping of folders can looks as follows:
>
> master-root/component1 <-> slave-root/component1/src/main/java
>
> master-root/component2 <-> slave-root/component2/src/main/java
>
>
>
> Is it possible and reliable using SVN 1.5?
>
>
>
> Best regards
>
> Marcin Stefaniuk
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-16 02:29:39 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.