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

SVN best practice: organising the SVN vault and organising your project

From: TM <tm_at_tm.uklinux.net>
Date: 2007-04-11 16:08:03 CEST

Dear All,

I would like to ask your views about best practice when it comes to
organising the SVN vault as well as organising your working project.

Let me give you a concrete example of something that I have been doing
and where the trouble starts:

a) I use SVN for a lot of stuff. I have different vaults organised in a
way that makes sense from the point-of-view of how I organise things in
my head (e.g unrelated projects might have different vaults). All vaults
are organised under the common folder 'C:\vault\svn' (nearly all the
work is done under MS Windows).

b) I write code in C and I have developed a few libraries that are used
by different projects. The libraries have their own SVN vault.

c) Each project (under SVN) calls the required libraries using
'svn:externals' (which use absolute paths pointing to the vault with the
libraries)

d) The structure of a C/C++ project might look like:
    project |- src
            |- include
            |- library 1
            |- library 2
So, the *.h, *.c/*.cpp files of each library sit inside the appropriate
sub-folder (I think this is a must imposed by 'svn:externals').

So far so good (unless people think I should be including the libraries
in some other, better, way).

The trouble starts when I sync my current (open) projects and vault at
work with the USB pen (by the way, I use Unison). I then sync the files
in the USB pen with my laptop.

The problem is that I have to have mirrored all the folder structure on
my laptop in order for things to run smoothly. If I place the vault
somewhere else in my laptop (which I would like to do) then the absolute
URLs in the 'svn:externals' don't work.

Also, if I decide to do some work in Linux (the laptop is dual-booting),
how do I mirror the location of the vault (there is no C: drive in the
first place)?

Thanks for your help,
TM

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 11 16:08:42 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.