Question about Subversion

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Question about Subversion

Post by nielsene »

I'm looking into switching from CVS to Subversion for several projects. The first project is a small local project that I started this weekend and is not currently under version control; once I get familiar with SVN, I'll migrate existing CVS managed projects.

However I'm slightly confused as to the recommended way to import a new project into SVN.

Lets say I have an existing directory/project structure under /usr/local/my-project,

I have created the SVN repository.

I want to import my existing source into a "standard" trunk, tags, branches SVN layout.

I think I'm supposed to create a new temporary directory structure:
/usr/local/tmp/my-project/trunk/ existing source directory
/tags/
/branches/

and then run the SVN import command?

I know that I can re-arrange things if I have to using svn rename, etc, however I'ld like to get started cleanly if possible.

Am I outlining a correct procedure?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

I think I'm supposed to create a new temporary directory structure:
/usr/local/tmp/my-project/trunk/ existing source directory
/tags/
/branches/
svn book by O'Reilly recommends to do so
Post Reply