How to SVN when code is already partly versioned?

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Moderators: dwhittle, Ian

How to SVN when code is already partly versioned?

Postby sjordan » Wed Oct 13, 2010 4:04 pm

Hi

I am working through the jobeet tutorial http://www.symfony-project.org/jobeet/1_4/Doctrine/en/

One Day 1 the tutorial recommends installing symfony via SVN and tying it to a branch, "If you use Subversion, it is even better to use the svn:externals property to embed symfony into your project in the lib/vendor/ directory"

By the end of Day 1, I have the complete directory structure:

Directory Description
apps/ Hosts all project applications
cache/ The files cached by the framework
config/ The project configuration files
lib/ The project libraries and classes
log/ The framework log files
plugins/ The installed plugins
test/ The unit and functional test files
web/ The web root directory

Now I want to put this whole structure into SVN. The normal SVN process is to create a directory such a jobeet. Put all the above directories and files into the jobeet directory. Navigate into the directory and run svn import command (making sure to provide URL of my repository). Then add an optional message and run svn commit.

However, when I try this, I get an error that lib/vendor/symfony is already under version control. I assume this is due to the tutorial's recommendation of the svn:externals stuff.

Question, how can I place my work under version control if part of the project is already under version control as is the case when following the tutorial?

Thank you in advance.
sjordan
Junior Member
 
Posts: 2
Joined: Thu Sep 09, 2010 3:30 pm

Re: How to SVN when code is already partly versioned?

Postby xplo » Sat Oct 16, 2010 2:20 pm

hi
delete /lib/vendor/symfony directory
commit/initialise your project
then add svn:external property in /lib/vendor
then update

while you re at it dont forget to svn:ignore cache/* and log/*
xplo
Faithful Member
 
Posts: 593
Joined: Wed Sep 17, 2008 3:23 pm


Return to Installation and setup

Who is online

Users browsing this forum: Bing [Bot] and 2 guests