Search code examples
svntortoisesvnvisualsvn-servertree-conflict

SVN X remains in tree-conflict


I am using VisualSVN (which uses Tortoise). I accidentally move a folder to a different location. When tries to move it back, SVN pukes with this error. It happened once before and I managed to do some random updates/commits, not knowing what I was doing and it was "fixed". I cannot pull the same magic again, so I need to know how to get my files and directory and of tree-conflict.

Thanks!


Solution

  • I had the same error (tree conflict), but from a different workflow.

    Find what process has the lock. Download Handle.exe, and open to the folder you extracted to. Then run "C:\path\handle.exe" "C:\path\FileOrFolder".

    https://technet.microsoft.com/en-us/sysinternals/bb896655.aspx

    Workflow to reproduce:

    - delete folder (having one of the files locked by a program that is within this folder)
    - commit parent folder of folder you deleted, and look for red text of the folder you deleted (it should be brown, not red if there aren't issues in SVN)
    

    To fix:

    - forcefully kill the lock (or close the program so it releases the lock)
    - run cleanup command on folder you deleted
    - revert folder you deleted
    - delete folder you deleted
    - commit parent folder of folder you deleted