Working copy XXX locked and cleanup failed in SVN

前端 未结 30 2673
鱼传尺愫
鱼传尺愫 2020-11-28 17:26

I get this error when I do an svn update:

Working copy XXXXXXXX locked Please execute \"Cleanup\" command

When I

30条回答
  •  迷失自我
    2020-11-28 17:29

    A colleague at work constantly sees this message, and for him it's because he deleted a directory under SVN version control without deleting it from SVN, and then created a new directory in its place not under version control, with the same name.

    If this is your problem...:

    There are different ways to fix it, depending on how/why the directory was replaced.

    Either way, you will likely need to:

    A) Rename the existing directory to a temporary name

    B) Do an SVN revert to recover the directory deleted from the file system, but not from SVN

    From there, you would either

    A) Copy the relevant files into the directory that was deleted

    B) If you had a significant change of contents in the directory, do an SVN delete on the original, commit, and rename your new directory back to the desired name, followed by an SVN add to get that one under version control.

提交回复
热议问题