Subversion - path not found on commit (turtle)

I have a local folder that used to be called "XYZ". It is now called "ABC." When I try to commit files in this directory, I get a "Path not found" message saying "XYZ" does not exist. Of course, when I look at the repository browser, there is no “XYZ” directory, but I wonder how I can say that the turtle stops looking for “XYZ” and instead treats it as “ABC”.

PS - the "ABC" directory appears in the remote repository, so it seems that even if the local name has been changed, the remote path to which it points does not.

Thank!

+3
source share
2 answers

You need to add the "ABC" folder to the repository. When you execute the commit command, SVN should completely delete the "XYZ" folder and add everything that was in it to the new "ABC" folder.

+2
source

This already has an answer, but there was a much simpler way to fix this when I received the error.

To reproduce:

svn mv /dir/subdir newdir/subdir/
svn rm /newdir/subdir --force
svn ci
svn: E160016: Path '/newdir/subdir' not present

To solve:

mkdir /newdir/subdir
svn add /newdir/subdir
svn ci
svn rm /newdir/subdir --force
svn ci

This worked for me, it required re-creating the missing directory, spoofing SVN, thinking that it was adding it instead of deleting it. Then remove it after intermediate fixation. Its dirty, but it is less likely to lose other changes.

+3
source

All Articles