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

Re: Multiple repositories with mixed directories (newbie)

From: Kylo Ginsberg <kylo.ginsberg_at_gmail.com>
Date: 2007-02-28 22:10:45 CET

Diederick,

Fwiw, another idea is to write a checkout script that knows the format
of your repository, and does non-recursive checkouts of the upper
directories, followed by a normal recursive checkout of the
leaf/module directories. I had to do something like this to get
support for cvs-style modules with subversion.

Something like:
#!/bin/bash

mod=$1
svnroot=svn://server/repos

svn co -N css css
svn co -N css/modules css/modules
svn co css/modules/$mod css/modules/$mod

<repeat for HTML and js in your example below>

A possible downside to this is that the non-recursive checkouts of the
top directories *will* pull the files in each of those directories.
YMMV.

Best regards,
Kylo

On 2/27/07, Diederick Huijbers <d.huijbers@apollo-ict.nl> wrote:
> Hi all,
>
> I've been reading and asking on irc #svn/google about a problem I have
> with understanding svn and my CMS.
>
> I've got a modular CMS (content management system), with a directory
> layout like:
>
> css
> css/modules
> css/modules/page
> css/modules/product
> HTML
> HTML/modules
> HTML/modules/product
> HTML/modules/page
> index.php
> js
> js/modules
> js/modules/product
> js/modules/page
>
>
> So in this example you see (some of) the directories of the cms. You see
> I've got 2 modules: page and product. The source files are spread over
> multiple locations/sub-directories.
>
> The source for the page module is spread into:
> -------------------------------------------------------------------------------
> css/modules/page
> js/modules/page
> HTML/modules/page
> ...etc....
>
>
> The source for the produduct module is spread into:
> -----------------------------------------------------------------------------------------
> css/modules/product
> js/modules/product
> HTML/modules/product
>
>
> Now, I want to start using svn, so I can checkout revisions/releases of
> a individual modules. For example, I want to be able to only checkout
> the product module, or the page module.
>
> Sadly I can't change the directory layout. (I've got my reasons.... ) As
> this is probably a general problem more people have I hope some of you
> could help me to fix this problem.
>
> What can I do?
>
> Thanks,
> Roxlu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 28 22:11:12 2007

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.