To ignore a file or directory inside a SVN repository use the following command:

svn propset svn:ignore <filename>

This also works for directories.