I\'ve got a compiled static library (with an \"a\" extension) I want to include in my SVN repository but adding it never works (no problems adding other types of items). If
So, I suggest actually edit that ~/.subversion/config file to allow .a files again:
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.pyc *.pyo
#global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
Because I have a lot of those .a files in my projects.
On Mac OSX (Lion) I'm using SCPlugin (http://scplugin.tigris.org/).
This adds a nice finder popup with SVN commands on it and it allows me to add *.a files when svnx or xcode don't allow it.
I suspect it's actually a bug as it's clearly ignoring the correct ignore settings (ironically), but for those who don't want to mess with terminal, it's proving handy.
EDIT: SmartSVN also allows you to see ignored files so they can be added as any normal file. Just check the 'ignored files' options under the view menu.
I have met this question recently, this is my way:
svn import --no-ignore --force svn://destination
Have you checked your global ignore settings. On linux they are stored in ~/.subversion/config
The default on my machine is :
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
so it ignores *.a files
more info here
You should be able to add the file with
svn add "file" --no-ignore
to bypass any ignore rule set.
If the command:
svn status --no-ignore
returns with I in front you have a local Ignore. Run:
svn propedit svn:ignore
By the way, if you're using SVN import (i.e., not a working copy), you can override the global ignores with:
--config-option=config:miscellany:global-ignores=[new ignores]
We can add library on svn:
svn add library.a --no-ignore
After add svn need to be update:
svn update
Commit changes on svn using:
svn commit -m "library.a added on svn"