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

RE: Repository Layout

From: Roth, Pierre <pierre.roth_at_covidien.com>
Date: Thu, 10 Jan 2008 15:19:00 -0000

> I'm setting a SVN repository for a project team with whom I

> work and I'm having some difficulty setting the correct

> layout because my project is a very large one (with 3

> different platforms: Unix, Linux and Windows) and I'm a SVN

> newbie. So, I would really appreciate every help I can get.

>

> Here's my problem:

>

> The source code for the project is intended to be the same

> across all 3 platforms. So, I thought of creating a SVN

> repository with this source code that could be updated

> whenever any developer wants to change the code. But, I have

> some files and folders specific to the different platforms I

> use, and I want to add these files when I need to compile or

> test the code when I am working for that platform. For example:

>

> the source code folders might be like this

>

> - folder 1

> --- test.c

> --- test.h

> --- ...

> - folder 2

> --- test2.c

> --- test2.h

> --- ...

>

> If I'm working in Windows I need to have in the local working

> copy something like:

>

> - folder 1

> --- test.c

> --- test.h

> --- MakefileWin <-- Makefile specific for Windows platform

> --- ... (other specific files for Windows)

> - folder 2

> --- test2.c

> --- test2.h

> --- MakefileWin <-- Makefile specific for Windows platform

> --- ... (other specific files for Windows)

>

> But, if I need to work in Linux, I have to be able to access

> a linux machine and have a different set of files, like:

>

> - folder 1

> --- test.c

> --- test.h

> --- MakefileLinux <-- Makefile specific for Linux platform

> --- ... (other specific files for Linux)

> - folder 2

> --- test2.c

> --- test2.h

> --- MakefileLinux <-- Makefile specific for Linux platform

> --- ... (other specific files for Linux)

>

> and I have to do this having only one SVN repository that

> stores the source code. But what about these

> platform-specific files? They need to be in another

> repository? Do I need to create branches that have these

> specific files for every different platform I need to

> compile/test my project's code?

>

You could use the svn:externals property... Please refer to "Externals
Definitions" chapter of subversion online book
http://svnbook.red-bean.com/en/1.4/svn-book.html
<http://svnbook.red-bean.com/en/1.4/svn-book.html>
Received on 2008-01-10 16:19:25 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.