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

RE: Want to set up SVN for a web app

From: Nicholas Curry <Nicholas.Curry_at_cofunds.co.uk>
Date: Thu, 2 Apr 2009 16:44:35 +0100

Replies to a couple of your questions:

>We have multiple developers. And each developer mostly is working on
>separate projects that "link" together. Does that mean I need multiple

>repositories?

If the projects depend on one another, it's probably best to use a
single repository with all projects checked in there - this will allow
the projects to evolve together if/when you need to branch/merge them.
This will allow you for instance to make an update to project A in
branch Branch1 without affecting project B (which depends on project A)
in your trunk. For more info about branching/merging, see the SVN book.

>Also, we cannot make the entire website into the svn repository,
>because there are hundreds of thousands of user generated files lying
>around!

You would definitely want to delete those first before adding your
project to the repository. With a bit of luck they'll be easy to
identify (e.g. if they all share the same file extension or some pattern
in the filename?)

>3) How do I work with this thing? What files do I edit, and where? On
>my local computer? On the live server? And once my changes are
>complete, then what?

You would edit the files on your local desktop, and then commit them to
the server. The server holds the main copy of your code. Other
developers then update their copies to get the changes you committed
from the server. That's how the code sharing works.

I don't mean to put you off, but a lot of these questions are answered
in the SVN manual - the 'fundamental concepts' chapter might be helpful:
http://svnbook.red-bean.com/en/1.5/svn.basic.html

HTH,
Nick

-----Original Message-----
From: Theodore H. Smith [mailto:delete_at_elfdata.com]
Sent: 01 April 2009 14:32
To: users_at_subversion.tigris.org
Subject: Want to set up SVN for a web app

Hi everyone,

So I want to set up SVN for a website. This website has a lot of php,
perl, java, javascript, and swf...

I've never used SVN before. I am really confused as where to start.

We have multiple developers. And each developer mostly is working on
separate projects that "link" together. Does that mean I need multiple
repositories?

Also, we cannot make the entire website into the svn repository,
because there are hundreds of thousands of user generated files lying
around!

I'm thinking we need multiple repositories.

So, what would our steps be?

1) Install SVN (done)

2) Make repositories for what folders, where? What command do I use?
Will I risk deleting my source code? or what do I do?

Let's say my source code is at /web/theo/
but there are also other source code at /web/fred and another at /web/
harry/

what do I do?

And then step 3?

3) How do I work with this thing? What files do I edit, and where? On
my local computer? On the live server? And once my changes are
complete, then what?

As these are web app files, I generally want to edit my files in some
kind of testing area on a server. But I also like to have the files
downloaded to my computer for local editing. I kind of like to freely
switch between the two, not worrying too much as long as I remember
which one (on my computer or on the testing area on the server) is the
most recent, then I can copy them across appropriately.

Also, I tend to do my work by editing the file using Transmit for Mac,
and a plain text editor. This is handy Transmit polls a local copy of
a file downloaded from the server. Once it has found changes, it
uploads the file back to the server! So basically this means Transmit
allows ANY app to edit any file on my server, transparently! No need
to worry about uploading, permissions, paths, passwords or any wierd
stuff. Just edit with my favourite app, and away I go.

Will SVN interfere with that?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageI
d=1519903

To unsubscribe from this discussion, e-mail:
[users-unsubscribe_at_subversion.tigris.org].

********************************************************
This e-mail has been swept for viruses by Cofunds.
For more information on this service, please
contact the IT Service Desk on Ext: 7060 or itservicedesk_at_cofunds.co.uk.
********************************************************

Cofunds Limited, 1st Floor, 1 Minster Court, Mincing Lane,
London EC3R 7AA. Registered in England and Wales
No 3965289. Authorised and regulated by Financial Services Authority. Phone: 0845 604 4001, or visit our website at www.cofunds.co.uk.
Telephone calls may be recorded for monitoring purposes.
**************************************************************************
The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information, or copying of this message is prohibited. If you are not the addressee, or believe this email to have been sent in error, please notify security_at_cofunds.co.uk immediately and delete this message.
Although this e-mail and any attachments are believed to be free of any virus, or other defect which might affect any computer or system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Cofunds for any loss or damage from receipt or use thereof.
This email does not create or vary any contractual obligations between Cofunds Limited and the addressee. Any views or opinions are solely those of the author and do not necessarily represent those of Cofunds Limited.
Those communicating with us by electronic mail will be deemed to have accepted the risks associated with interception, amendment, loss and late or incomplete delivery. They will also be deemed to have consented to our monitoring of such communications.
**************************************************************************

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-02 19:01:46 CEST

This is an archived mail posted to the Subversion Users mailing list.