tags:

views:

80

answers:

2

I'm the only person working on my django svn repo and I get this error every time I try and commit -

 svn: Commit failed (details follow):
 svn: Your file or directory 'urls.py' is probably out-of-date
 svn: resource out of date; try updating

I've done an update before every commit and I still get this error - does anyone know how I can fix this?

+1  A: 

You may try the svn cleanup command. You may rename/move your local urls.py and update the directory. Afterwards, move back and overwrite the recreated urls.py from the repository (make sure you don't miss any changes).

Scoregraphic
I like to emphasize: update the directory, not only the file!
akr
+1  A: 

You can get this situation when you add a directory without using svn mkdir, or especially if you svn add something but then delete it.

If your urls.py doesn't have local modifications, delete it and then do svn up urls.py.

You can also try svn up --force.

Kevin Peterson