Folder is locked and I can't unlock it

前端 未结 17 2238
离开以前
离开以前 2021-01-30 07:48

When I\'m trying to update or commit code from a project it\'s telling me that the folder is locked. When I try to \"release lock\" it says that there\'s nothing to unlock in th

17条回答
  •  长发绾君心
    2021-01-30 08:22

    I was moving a folder up one level and into another folder. My mistake was doing the move from within the parent folder.

    Bad example:

    pwd -> C:\Repo\ParentDir\
    svn move ./DirtoCopy ../AnotherDir
    

    SVN needs to update the parent directory with the deleted folders info.
    You have to do it from the common root of the source and destination folders or use full paths.

    Good example:

    svn move C:\Repo\ParentDir\DirtoCopy C:\Repo\NewLocation
    

提交回复
热议问题