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 I change the extension (e.g., "library.a" --> "library.b"), the add works. Why is the "a" extension failing? Is there a way around this without renaming the file?
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
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
which does not include *.a. –
Blatherskite svn add somelib.a
explicitly, then all is good. Is there a way to turn off this default "skip all the .a-s" behaviour? Thanks! –
Mccollum 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.
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"
I have met this question recently, this is my way:
svn import --no-ignore --force svn://destination
© 2022 - 2024 — McMap. All rights reserved.