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

Re: Excluding subdirectories during import

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-09-30 18:06:58 CEST

Kenneth Porter wrote:
> Are there any plans to add an exclude switch to the import command? I know
> about non-recursive, but that's a relatively big hammer. I'd like to list
> specific directories/files to exclude from the import, perhaps
> automatically creating svn:ignore properties in the parent. Meanwhile,
> would I need to script up a set of import commands, one for each desired
> directory in the tree except for the ones I want to exclude, specifying
> non-recursive? Or is there a simpler approach?
> I have a web app that includes data files in the web space (yeah, the
> design should be changed, but that's a battle for another day) and I don't
> want those under version control, at least not in the same repository.

cd local/dir/of/this/webapp
svn mkdir url://repository/place/for/new/webapp
svn co url://repository/place/for/new/webapp .
svn add *
svn revert file-that-I-do-not-want-added another-file-not-to-add
svn commit

I.e., we turn the existing root of the webspace into a WC, and then use
normal "svn add" and "svn revert" to select/unselect things for addition
within that WC, then commit.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 30 18:09:20 2004

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