You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by YONETANI Tomokazu <qh...@les.ath.cx> on 2004/11/03 14:10:50 UTC

svn:ignore and svn import

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