global-ignores

2 views
Skip to first unread message

Shiyuan

unread,
Apr 15, 2011, 3:53:38 PM4/15/11
to us...@subversion.apache.org
Hi,
I want svn to ignore a certain files and I set up

global-ignores = *.s *.o *.lo *.la *.al .libs *.s *.so *.so.[0-9]* *.a *.pyc *.pyo  *.rej

However, it doesn't seem to work. svn ci and svn update still check in or overwrite those files. What else do I need to setup? 

I also want svn to ignore all executable files. How can I specify it in global-ignores?

Thanks.

Andy Levy

unread,
Apr 15, 2011, 4:09:43 PM4/15/11
to Shiyuan, us...@subversion.apache.org

If the files are already in the repository, they will not be ignored.

If you explicitly add them, the ignores may be ignored.

David Chapman

unread,
Apr 15, 2011, 4:13:50 PM4/15/11
to Shiyuan, us...@subversion.apache.org

global-ignores is for candidates to be added to the repository. It does
not affect objects already in the repository, such as what you have
now. You'll need to remove them from the repository where appropriate.
After that they won't be added automatically.

I don't know of a way to ignore executable files under Linux etc.; under
Windows "*.exe" works fine. I'm guessing you want to ignore build
targets, but simply testing the executable bit will also exclude shell
scripts, which you may well want to consider for automatic adding to the
repository.

--
David Chapman dcch...@acm.org
Chapman Consulting -- San Jose, CA

Reply all
Reply to author
Forward
0 new messages