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

Re: Advise sought - repository structure.

From: Toby Thain <toby_at_telegraphics.com.au>
Date: Tue, 27 Jan 2009 13:10:58 -0500

On 26-Jan-09, at 3:53 PM, Ian Hobson wrote:

> Hi All,
> Just learning how best to use subversion.....
> I'm using svn for controlling the source of a php system that now has
> two users - soon to be three. I'm developing on windows, and deploying
> on linux. (and the only developer).
> When the system gained a second user, I started a new branch, and have
> been adding fixes to both branches since. This is not really
> satisfactory - and with 3 or 4 branches will become an error prone
> pain.
> As part of the latest set of changes (extensive) I have also completed
> work to move all differences into just 4 files - a .css file, a .php
> file and two images. There is now a common core system. Each user has,
> in addition, 4 "configuration" files.
> I need the configuration files to be under version control, and
> private
> to each user. Core files should be available to all user sites.

You can put per-user files into separate directories under path-based
access control. A checkout will simply skip directories where
appropriate permissions are not held.


project:/trunk/user1_private/... # read access to user1 only

You can use a symlink on the client if you need to reference the per-
user file in a fixed filesystem location (e.g., /etc/mysql/my.cnf ->
~user1/workspace/project/user1_private/my.cnf )

> How should I set up the subversion repository(ies) to best support
> this?

On this scale you can probably have all users working in trunk for
routine maintenance (like bug fixes). A 'branch' would be indicated
by separate, major features that should not interfere with trunk work.

> Would we be best served by multiple repositories,

Absolutely not. It would make merges much more difficult.


> and some method of
> moving the configuration files in among the "core" files?
> Ideas and suggestions welcome.
> Thanks
> Ian
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?
> dsForumId=1065&dsMessageId=1055999
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe_at_subversion.tigris.org].


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-27 19:12:21 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.