[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-11-22 22:15:17 CET

On Nov 22, 2004, at 8:35 AM, trlists@clayst.com wrote:
>
>
> /temp/project/html
> /temp/project/html/iimages
> /temp/project/html/connect
> /temp/project/smarty_config
> /temp/project/smarty_templates
>
> (I know I may need to deal with trunk and branches, I will do that
> later oncee I get this simple approach working).
>
> The import command was:
>
> svn import /temp file:///h:/svnrepos -m "Directory setup"
>
> and the project directory was the only one present under temp.
>
> Then I tried:
>
> svn list --verbose file:///h:/svnrepos
>
> And got:
>
> 1 Administ Nov 22 09:21 project/

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.

>
> Then I tried to add the files, from the actual /project directory, like
> this:
>
> svn add --targets allfiles.txt

'svn add' assumes that you already have a working copy, and is run on
unversioned objects in the working copy. It schedules them for
addition upon your next 'svn commit'.

As far as I can tell, though, you've not even created a working copy
yet (using the 'svn checkout' command.) If you did, I think you'd see
that your whole tree was successfully imported into the repository.

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

>
> 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.

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