[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: <trlists_at_clayst.com>
Date: 2004-11-23 06:37:25 CET

On 22 Nov 2004 Ben Collins-Sussman wrote:

> > svnadmin.exe create --fs-type fsfs h:/svnrepos/project
> > svn checkout file:///h:/svnrepos/project .
> > svn add --non-recursive trunk/
> > svn add --non-recursive trunk/html/
> > svn add --non-recursive trunk/html/images/
> > ... [more directories]
> > svn add --targets allfiles.txt
> > svn commit -m "Initial setup"
> > svn list --verbose -R trunk/
> >
>
> I have to admit, I'm looking at this script and I'm utterly confused...
> it's so complex! I don't understand what you're trying to accomplish.
> 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.

I'm new at this and happy to be corrected, but I spent a lot of time
reading to try to figure out how to do what I wanted -- concisely
described as "place files from an existing project under version
control, where the files are mixed in a directory structure with files
and subdirectories which are not going under version control". [There
are good reaosns for this structure that I wasn't prepared to trump
with the needs of the version control system.] I couldn't find
anything that explained how to do this so I rolled my own. If there's
a better way I'd be glad to know!

Thanks,

--
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 23 06:46:04 2004

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.