SVN won't import *.a library

后端 未结 6 1626
抹茶落季
抹茶落季 2020-12-25 12:36

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

相关标签:
6条回答
  • 2020-12-25 12:56

    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.

    0 讨论(0)
  • 2020-12-25 13:00

    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.

    0 讨论(0)
  • 2020-12-25 13:02

    I have met this question recently, this is my way:

    svn import --no-ignore --force  svn://destination
    
    0 讨论(0)
  • 2020-12-25 13:04

    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
    
    0 讨论(0)
  • 2020-12-25 13:05

    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]
    
    0 讨论(0)
  • 2020-12-25 13:08

    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"
    
    0 讨论(0)
提交回复
热议问题