[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: Tom Rawson <trawson_at_clayst.com>
Date: 2004-11-22 23:35:30 CET

On 22 Nov 2004 Ben Collins-Sussman wrote:

> Do you understand that 'svn list' isn't a recursive listing unless you
> pass the -R flag? I'm sure your entire tree was imported. There's no
> need to 'add' them.

No, but I finally sorted out the idea that some things are recursive by
default and others aren't. Now it makes sense.

> I recommend that you keep going past chapter 1, and read chapters 2 and
> 3. :-)

I did, I did. But we newbies don't always remember everything on the
first pass ... or even the third :-). Thanks for the help and
pointers.

> > What am I doing wrong here? Do I simply have to check out the
> > directory structure into my real working area before adding files?
>
> Yes.

I got it to work, but it ended up taking a little more than that. It
worked better for me to check out the empty project, then use add for
everything. Here's what I ended up with (I set up a script for this,
so I could try different approaches and make mistakes -- it's a small
project so deleting and retrying was OK):

     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/

Thanks,

--
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 22 23:49:31 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.