views:

63

answers:

2

Hello everyone,

I can't add .a files (static libraries) into my repository.

Why ?

Is there any way to "force" SVN to accept them (at least as static files...) ?

Thank you

+2  A: 

The svn:ignore property contains a list of file patterns which certain Subversion operations will ignore

Also do you have a config file that global-ignores. it is a list of whitespace-delimited globs which describe the names of files and directories

svn status, the svn add and svn import commands also ignore files that match the list.

To override for certain instance use --no-ignore command-line flag

>>>>svn help add
usage: add PATH...

Valid options:
  --targets ARG            : pass contents of file ARG as additional args
  -N [--non-recursive]     : obsolete; try --depth=files or --depth=immediates
  --depth ARG              : limit operation by depth ARG ('empty', 'files',
                            'immediates', or 'infinity')
  -q [--quiet]             : print nothing, or only summary information
  --force                  : force operation to run
  --no-ignore              : disregard default and svn:ignore property ignores
  --auto-props             : enable automatic properties
  --no-auto-props          : disable automatic properties
pyfunc
If I understood correctly I need to edit ignore config list OR add --no-ignore to my commands. Can you confirm ? Thanks you !
F.Santoni
Add --no-ignore to svn add command
pyfunc
A: 

Make sure your issue is caused by the svn ignore configuration. With `svn status' your '*.a' file will be missing, while 'svn status --no-ignore' shall displaying it with a question mark in front.

Open the subversion configuration file in your home directory:

~/.subversion/config

Search for the 'global-ignores' section:

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

Remove *.a from the list of ignored files.

zellus
i would suggest to do a specific override while adding / rather than remove from this.
pyfunc