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

svn:ignore and svn import

From: YONETANI Tomokazu <qhwt+dfly_at_les.ath.cx>
Date: 2004-11-03 15:10:50 CET

Hello. This description in svnbook
(http://svnbook.red-bean.com/svnbook-1.0/ch07s02.html#svn-ch-7-sect-2.3.3)

|The svn:ignore property contains a list of file patterns which certain
|Subversion operations will ignore. Perhaps the most commonly used special
|property, it works in conjunction with the global-ignores run-time
|configuration option (see the section called ?Config?) to filter unversioned
|files and directories out of commands like svn status, svn add, and svn import.

looks to me like you can set svn:ignore property before running svn import
to filter out unwanted files from importing to the repository.
And I have no idea how I can do it. This is what I tried:

| $ svnadmin create $HOME/svn/foo
| $ svn co file://$HOME/svn/foo
| Checked out revision 0.
| $ cd foo
| $ cat > ignore
| *.bak
| *.org
| *.orig
| *.backup
| $ svn propset svn:ignore -F ignore .
| property 'svn:ignore' set on '.'
| $ svn ci -m "svn:ignore"
| Sending .
|
| Committed revision 1.
| $ cd ..
| $ mkdir bar; cd bar
| $ touch a.bak a.orig
| $ svn import -m "" file://$HOME/svn/foo
| Adding a.orig
| Adding a.bak
|
| Committed revision 2.

Is this correct? If not, how can I tell svn import to honor svn:ignore
property?

Thanks.
(Please keep me in Cc: as I'm not subscribed to the list)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 3 17:13:18 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.