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

Creating First Repository

From: <trlists_at_clayst.com>
Date: 2004-11-22 15:35:34 CET

I'm a new SVN user. I'm am trying to create a respository and a
project within it, then add a set of existing files to the project
using svn add --targets. So far, no luck! I'm sure the solution is
something totally obvious but I'm not used to SVN yet so I can't see
it.

I can create the repository fine with svnadmin, and I set up a mirrored
directory tree for my project (directories only, not files) as
suggested in the Quick Start and imported it successfully. The
directory tree looks like this:

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

Then I tried to add the files, from the actual /project directory, like
this:

        svn add --targets allfiles.txt

where allfiles.txt looks like this:

        html/file1.htm
        html/file2.htm
        ...

I get this error:

        svn: 'html' is not a working copy

What am I doing wrong here? Do I simply have to check out the
directory structure into my real working area before adding files?
Does a checkout with no files in the repository alter anything in the
working directories?

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 15:37:48 2004

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