Tue 13 May 2008
Subversion exclude files by svn:ignore and ‘svn add *’ pitfall
Posted by admin under bash , linux , programming , subversion , ubuntu[2] Comments
To exclude certain files and directories from subversion’s version control you can set the ‘svn:ignore’ property as described in Ignoring Unversioned Items.
That works fine but nevertheless you might run into problems if you are using
svn add *
or similiar on linux systems. This is due to the shell expansion of wildcards. The above command is expanded to explicit files names svn add filename and seems to have the same effect as svn add --no-ignore filename.
Tip: Use svn add --force . instead!
May 16th, 2008 at 2:11 pm
That’s a great tip, and something we (the authors) should have included in Version Control with Subversion. I’ll file an issue in our tracker right now for this omission.
June 3rd, 2008 at 6:57 am
This has been fixed in r3098. Issue located here:
http://svnbook.red-bean.com/trac/ticket/115
Thanks again!
-Fitz