[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: Ian Hobson <ian_at_ianhobson.co.uk>
Date: Tue, 27 Jan 2009 10:56:11 +0000

Ryan Schmidt wrote:
> On Jan 26, 2009, at 14:53, Ian Hobson wrote:
>
>> 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.
>>
>> How should I set up the subversion repository(ies) to best support this?
>>
>> Would we be best served by multiple repositories, and some method of
>> moving the configuration files in among the "core" files?
>
> Stick with one repository, otherwise things get confusing (or perhaps
> impossible) when trying to merge changes between them.
>
> Regarding your configuration files, does this apply to you:
>
> http://subversion.tigris.org/faq.html#ignore-commit
>
>
Hi Ryan,

Thanks for your comments, and the URL does apply to me - sort of. The
situation is similar but I need the live configuration files to be under
version control also (both for backup and history).

What I have decided to do is have one repository for the main system and
one for the configuration files of each client. I already have multiple
repositories, one for each client, and each with a valid user list. so
this will continue.

Install will be to run a new script stored with each set of
configuration files, that will hard link them into the correct places in
the main system.

I can then provide the clients with write access to SVN for their
configuration files. (Testing is needed to discover if an update to the
configuration files from elsewhere breaks the hard links or not).

Thoughts?

Regards

Ian

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1058480

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