SVN upgrade working copy

后端 未结 10 1551
粉色の甜心
粉色の甜心 2020-11-28 23:19

I cannot do a SVN commit. I get this error:

org.apache.subversion.javahl.ClientException: The working copy needs to be upgraded
svn: Working copy \'C:\\....          


        
相关标签:
10条回答
  • 2020-11-29 00:06

    You have to upgrade your subversion client to at least 1.7.

    With the command line client, you have to manually upgrade your working copy format by issuing the command svn upgrade:

    Upgrading the Working Copy

    Subversion 1.7 introduces substantial changes to the working copy format. In previous releases of Subversion, Subversion would automatically update the working copy to the new format when a write operation was performed. Subversion 1.7, however, will make this a manual step. Before using Subversion 1.7 with their working copies, users will be required to run a new command, svn upgrade to update the metadata to the new format. This command may take a while, and for some users, it may be more practical to simply checkout a new working copy.
    — Subversion 1.7 Release Notes

    TortoiseSVN will perform the working copy upgrade with the next write operation:

    Upgrading the Working Copy

    Subversion 1.7 introduces substantial changes to the working copy format. In previous releases, Subversion would automatically update the working copy to the new format when a write operation was performed. Subversion 1.7, however, will make this a manual step.

    Before you can use an existing working copy with TortoiseSVN 1.7, you have to upgrade the format first. If you right-click on an old working copy, TortoiseSVN only shows you one command in the context menu: Upgrade working copy.
    — TortoiseSVN 1.7 Release notes

    0 讨论(0)
  • 2020-11-29 00:06

    With AnkhSVN in Visual Studio, there's also an "Upgrade Working Copy" option under the context menu for the solution in the Solution Explorer (when applicable).

    0 讨论(0)
  • 2020-11-29 00:08

    If you have just upgraded to SVN 1.7 on your machine (like I just did), and have a lot of projects in your Eclipse workspace which need to be upgraded, you can do the following in a terminal window on Unix-baesd systems:

    cd [eclipse/workspace] # <- you supply the actual path here
    
    for file in `find . -depth 2 -name "*.svn"`; do svn upgrade `dirname $file` ; done;
    

    After Googling a bit, I found what seems to be the equivalent for Windows users:

    http://www.rqna.net/qna/mnrmqn-how-to-find-all-svn-working-copies-on-win-xp.html

    See the answer by Alexey Shcherbak halfway down the page.

    0 讨论(0)
  • 2020-11-29 00:09

    On MacOS:

    1. Get the latest compiled SVN client binaries from here.
    2. Install.
    3. Add binaries to path (the last installation screen explains how).
    4. Open terminal and run the following command on your project directory:

      svn upgrade

    0 讨论(0)
提交回复
热议问题