Subversion says: Your file or directory is probably out-of-date
Posted On: April 14, 2009 at 1:19 p.m.
UPDATE: The solution below is not the correct solution to this problem and you should never need to do the below to be able to commit. This problem is most likely caused by a known bug in Subversion that only occurs when you mount your repository to the root of a domain. The correct fix for this is to serve the repository from inside a folder instead. So, svn.domain.com should be moved to something like svn.domain.com/repo/. Once I did that I have never gotten an out of date error except when my working copy was truly out of date, in which case I was able to simply update and then commit.
Usually this has happened to me when I have lots of changes in my working copy.
Your file or directory is probably out-of-date
So you do a “svn up” and try again, same thing. Aaarrrhhh. You could try and do a svn cleanup but that won’t help either. You could do checkout a new working copy and make all your changes again, but really who has time for that?
The below process has never done any damage to any of my working copies, but that doesn't mean it couldn't. I don't know exactly what this file does in SVN internally. I just know its always worked for me.
Take note of where the offending file is located in the error message, then simply go into your working copy to the folder that file is located in and you’ll have a .svn directory there (you may have to change some things to show hidden files in your OS, or use “ls -a” if you’re using a command prompt). Inside the .svn folder you’ll see a “all-wcprops” file. Remove that and you should be able to commit.
If you’ve got a folder with many internal folders containing files that are causing this error, you can use your friendly terminal to run this command and remove them all at once. From WITHIN the folder that you want to clear all of the all-wcprops files:
find . -name all-wcprops -exec rm -rf {} \;

Comments