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

Re: Problems adding new files. New user

From: Dave Pawson <dave.pawson_at_gmail.com>
Date: 2005-09-06 16:49:16 CEST

On 06/09/05, Ryan Schmidt <subversion-2005@ryandesign.com> wrote:

> > When I try
> >
> >> svn add /path/to/file
> >
> > I get
> > svn: '..\tmp\trunk' is not a working copy
>
> /path/to/file is within \tmp\trunk, yes?
no. Must the two be related?

should I cd to a specific place first?
Not stated (as I read the books :-)

>
> Could you show us the commands you used to create \tmp\trunk? I
> presume you intended for \tmp\trunk to be a working copy, but
> Subversion doesn't think it is for some reason, so let's find out why.
Its just a file on my filesystem. Nothing special about it.

>
> It should just be as simple as (Unix syntax; sorry, you'll have to
> convert mentally to Windows)...
No probs. I need to do this on FC4 too!

>
> cd /tmp
> svn checkout url://to/repository/project/trunk # check out a new
> working copy
... sort of a a working copy of nothing?
or do you mean a working copy of all the files in trunk directory
of 'project' ?

> cd trunk # go into the new working copy
I *think* you mean a working copy of an empty directory in the repo?

> touch new-file # make a new file
> svn add new-file # add the new file to version control
> svn commit -m "Adding new-file" # check in the new file

Sorry Ryan. I'm either not following you or it isn't making sense.
Your line seems to follow
http://www.developer.com/tech/article.php/3503151

I tried another tack which *seems* to work.

I have a 'working copy' (directory created when I checked out the files)
directory (contains tags, trunk and branches)
cd to that directory
>cd <wkingDir>

copy any old file into the trunk directory.

> copy /temp/trash.txt /trunk

>svn st
shows me that svn has a foreigner on board ;-)
? trunk/trash.txt

>svn add trunk/trash.txt
Now commit

>commit -m "test file, trash.txt"

this seems to work OK, and makes sense to me (OK OK :-)

Is that a reasonable way of introducing new files?

TIA

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 6 16:51:36 2005

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.