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

Re: make existing web site subversion aware

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Thu, 5 Nov 2009 00:53:29 +0300

Greetings, Christine Ross!

> I have an existing web site project that the developers now want to put
> into subversion. There is no version control, just an
> /usr/local/apache2/htdocs/docsite directory. This is a solaris 10
> server. I have done a useradd -d /home/subversion -m svn, and svncreate
> create /home/subversion/repos. I'm working on the apache configuration.

 

> The documentation talks about importing a project? Do I have to somehow
> bring this /usr/local/apache2/htdocs/docsite directory into
> /home/subversion/repos?

Quite, yes. However, not directly.
You have to use "svn" tool to do this for you.

> I saw this but how would it know what to do with all the files and
> directories in the current DocumentRoot that contains all the files for
> the application being put under subversion control?

*You* tell it to do so. :)

> $ cd /home/subversion/repos

> $ mkdir myproject_svn myproject_svn/tags myproject_svn/branches

> $ mv myproject myproject_svn/trunk

No, no and no.

> $ svn import myproject_svn http://localhost:8080/svn/repos/myproject

Once you configured Apache, established all connections and so on, you should
never touch the /home/subversion directory by hands, unless in dire cases,
such as system crash or movement to the new server.

> Can I make another directory under repos for that particular project?
> Currently my httpd.conf have SVNPath and not SVNParentPath.

> Any help is apprecaited?

First, and foremost - read the http://svnbook.org/ in a whole. No excuse for
you if you didn't. Aside from being very informative, it is a very good
reading.

Second, to the "can i ..." - you can. How, exactly? Depends on your
Apache-Subversion configuration.

And third, you do not need to create trunk/branches/tags by hands.
Subversion can create trunk for you if you tell it to create parent dirs at
import. Same applies to the branching and tagging.

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 05.11.2009, <0:46>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414528
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-04 22:56:18 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.