[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: Christine Ross <cross_at_hccs.com>
Date: Thu, 5 Nov 2009 10:19:57 -0500

Thank you. I appreciate your answer but my question was about not
having any subversion repos installed yet and how to bring a web site
DocumentRoot into subversion.

I will check out the sites and docs.

Thanks
-----Original Message-----
From: Neels J Hofmeyr [mailto:neels_at_elego.de]
Sent: Wednesday, November 04, 2009 5:11 PM
To: Christine Ross
Cc: users_at_subversion.tigris.org
Subject: Re: make existing web site subversion aware

Christine Ross wrote:
>
>
> I have an existing web site project that the developers now want to
put
> into subversion.

Hi Christine,

let me give you a very simple example. Say I've got folder ~/foo that I
want
to put in subversion. I already have a repository, and I can reach it at
URL
http://my.com/repos/. (You can also try URL file:///abs/path/to/repos )

Then these commands are my preferred way to put 'foo' under version
control:

# see if the repos is really there:
svn info http://my.com/repos/

# get a working copy. You can use --depth=immediates when your repos
# is full of stuff you don't want to download.
svn checkout http://my.com/repos working-copy

# Optional: make some structure
svn mkdir working-copy/trunk

# copy the folder foo into trunk
cp -a ~/foo working-copy/trunk/

# Optional: clean out files that shouldn't go under version control
rm working-copy/trunk/foo/bar

# add and commit, so that the stuff goes to the server
cd working-copy
svn add trunk/foo
svn commit -m "Initial commit of foo."

You need to get familiar with working copies, and while I don't
recommend
reading the *whole* Subversion book end to end, it is in fact the best
place
to find out the stuff I just wrote here.

Also see: http://subversion.tigris.org/faq.html#website-auto-update

Good luck!
~Neels

> 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?
>
>
>
> 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?
>
>
>
> $ cd /home/subversion/repos
>
> $ mkdir myproject_svn myproject_svn/tags myproject_svn/branches
>
> $ mv myproject myproject_svn/trunk
>
> $ svn import myproject_svn http://localhost:8080/svn/repos/myproject
>
> Can I make another directory under repos for that particular project?
> Currently my httpd.conf have SVNPath and not SVNParentPath.
>
> Any help is apprecaited?
>
> Thank you
>

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-05 16:20:59 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.