What should I do when 'svn cleanup' fails?

后端 未结 30 1496
谎友^
谎友^ 2020-12-04 04:50

I have a lot of changes in a working folder, and something screwed up trying to do an update.

Now when I issue an \'svn cleanup\' I get:

>svn clea         


        
30条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 05:10

    I hit an issue where following an Update, SVN showed a folder as being conflicted. Strangely, this was only visible through the command line - TortoiseSVN thought it was all fine.

    #>svn st
    !       my_dir
    !       my_dir\sub_dir
    

    svn cleanup, svn revert, svn update and svn resolve were all unsuccessful at fixing this.

    I eventually solved the problem as follows:

    • Look in the .svn directory for "sub_dir"
    • Use RC -> Properties to uncheck the 'read only' flag on the entries file
    • Open the entries file and delete the line "unfinished ..." and the corresponding checksum
    • Save, and re-enable the read-only flag
    • Repeat for the my_dir directory

    Following that, everything was fine.

    Note I didn't have any local changes, so I don't know if you'd be at risk if you did. I didn't use the delete / update method suggested by others - I got into this state by trying that on the my_dir/sub_dir/sub_sub_dir directory (which started with the same symptoms) - so I didn't want to risk making things worse again!

    Not quite on-topic, but maybe helpful if someone comes across this post as I did.

提交回复
热议问题