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

Re: adding dir/files to a working copy/repository....

From: Bryan Dyck <bdyck_at_mac.com>
Date: 2004-09-21 23:35:53 CEST

On Sep 21, 2004, at 1:58 PM, bruce wrote:

> hi...
>
> in adding a new dir with underlying files to a repository...
> /foo
> cat.txt
> dog.txt
>
> what's the best approach....
>
> these would be new dir/files.
>
> should i:
> 1) svn mkdir foo
> 2) copy /tmp/cat.txt foo/cat.txt
> 3) copy /tmp/dog.txt foo/dog.txt
> 4) svn add mkdir http://foo.com/svn
> 5) svn commit -m "add new dir" http://foo.com/svn
>
> (should we even need the http:\\.... ??)
>
> or:
> 1) mkdir foo
> 2) copy /tmp/cat.txt foo/cat.txt
> 3) copy /tmp/dog.txt foo/dog.txt
> 4) svn copy foo http://foo.com/svn -m 'new test dir'
>
> with the expectation that this will copy the new dir/files into the
> repository, and do the commit....
>
> or are the other better ways to handle this situation...

Have you tried this method?

http://svnbook.red-bean.com/svnbook-1.1/ch03s07.html#svn-ch-3-sect-7.3

The use of svn import as described in that link is probably the easiest.

Cheers,
b

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 21 23:36:28 2004

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