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

RE: Creating First Repository

From: McKenna, Simon (RGH) <Simon.McKenna_at_rgh.sa.gov.au>
Date: 2004-11-23 07:59:44 CET

Hi Tom,

[..]
-=> > Why not just import an entire tree into the empty
-=> > repository, all at once, in a single command?
-=>
-=> Well that's what I thought too -- but I have lots of
-=> unversioned files in the directories in question
-=> (and some unversioned directories within the tree).
-=> I didn't want to import the unversioned stuff of course,
-=> so I couldn't import the whole tree (right?).
[..]
-=> So, I made a list of the files I wanted under version control in
-=> allfiles.txt. But as far as I could tell svn add wouldn't add them
-=> unless the directories were already in the repository, so I
-=> had to add them first.
[..]
-=> If there's a better way I'd be glad to know!

Not sure if this will help you, but for the repositories
created at our work here's the formula I use:

1. Create repository (duh!:)
2. Create temp directory structure based on repository structure
  (trunk, tags, branches) and all the files you want versioned
  (under trunk)
3. Import all of the temp directory structure into repository root
4. Checkout trunk of repository into clean working copy
5. Copy un-versioned files into working copy, add to svn:ignore

Hope that helps.

peace - si
sshnug.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 23 08:01:16 2004

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