SVN no longer writes .svn in all sub-folders?

后端 未结 2 721
难免孤独
难免孤独 2021-02-18 16:40

I recently upgraded my SVN client from 1.6.9 to 1.7.2 and after converting to the new format, I noticed that there is no longer a .svn every sub-folders. For my particular confi

2条回答
  •  天命终不由人
    2021-02-18 16:43

    The most straightforward way to get subversion to write out .svn directories in every directory is to downgrade your subversion to a version before the 1.7 series. Subversion 1.6.23 was the last version to have the behavior you want.

    Another way to accomplish this that will work with Subversion 1.7 and later is to individually check out each subdirectory of your project. For example, if you had a project with a directory structure like:

    project
    `- bin
    `- etc
    

    You could check it out by doing something like:

    mkdir project
    cd project
    svn co svn+ssh://foo@bar.org/src/project/bin
    svn co svn+ssh://foo@bar.org/src/project/etc
    

    This is only tolerable if you have few directories and their organization is shallow.

    Otherwise, downgrading to an older subversion is your best bet.

提交回复
热议问题