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

RE: Unclean solution?

From: Campbell, Matthew A <Matthew.Campbell_at_Relizon.com>
Date: 2004-07-20 16:23:33 CEST

> I find out these steps:
>
> 1) create svn repository
> 2) import project
> 3) checkout working copy

3.5) remove your unwanted files; svn remove foo

> 4) set ignored dirs|files "svn propset svn:ignore -F .svnignore ."

You should already be fine here. A commit/checkin is not in my experience
strictly necessary. One stumbling block for me while learning to use
svn:ignore was the requirement of keeping one pattern per line. It took
several failed attempts before I read the appropriate passage in the book.
(I really must learn to read the manual first...)

> 5) svn up
> 6) svn ci
> 7) remove unwanted dirs|files "svn remove foo"
> 8) svn ci
> 9) create unwanted dirs|files again
> 10) now these dirs|files are not listed when I run svn status
>
> Do you know some more clean solution?
>

You would actually be better served by never importing these into the
repository in the first place - which probably means not using svn import at
all. The method I use here is something like this: (repository already
exists)

1) locally, make a copy of the project I want to "import" and remove all
unwanted files
2) svn import URL/path/to/new/project /path/to/cleaned/copy
3) svn co URL/path/to/new/project
4) svn propset svn:ignore -F /path/to/ignore/file .
5) svn propset -R svn:keywords "Id" *
6) svn ci

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 20 16:29:46 2004

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