What should I do when 'svn cleanup' fails?

后端 未结 30 1495
谎友^
谎友^ 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:31

    This answer only applies to versions before 1.7 (thanks @ŁukaszBachman).

    Subversion stores its information per folder (in .svn), so if you are just dealing with a subfolder you don't need checkout the whole repository - just the folder that has borked:

    cd dir_above_borked
    mv borked_dir borked_dir.bak
    svn update borked_dir
    

    This will give you a good working copy of the borked folder, but you still have your changes backed up in borked_dir.bak. The same principle applies with Windows/TortoiseSVN.

    If you have changes in an isolated folder have a look at the

    svn checkout -N borked_dir   # Non-recursive, but deprecated
    

    or

    svn checkout --depth=files borked_dir
    # 'depth' is new territory to me, but do 'svn help checkout'
    

提交回复
热议问题