[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: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-09-21 23:40:30 CEST

bruce wrote:
> in adding a new dir with underlying files to a repository...
> /foo
> cat.txt
> dog.txt
>
> what's the best approach....

If I understand correctly, this sounds like a job for svn import. You
can set up the directory however you want locally, then import it, like
this:

mkdir /tmp/foo
copy /wherever/cat.txt /tmp/foo
copy /wherever/dog.txt /tmp/foo
svn import /tmp/foo http://foo.com/svn/foo -m "import /foo"

Another interesting way to get some local files under version control is
the "in-place import without using import" trick, described here:

http://subversion.tigris.org/project_faq.html#in-place-import

Hope this helps!

-- Mike

---------------------------------------------------------------------
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:41:26 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.