Question: I'm trying to `svn update` my SVN working copy with TortoiseSVN but the update fails, asking to perform the clean up first.

However, the `svn cleanup` fails too stating that a `\.svn\pristine\20\20long-namecbf.svn-base file cannot be found`. 

I've already tried to release the lock but this does not work either.

**Any idea how should I proceed?**

Answer: 
You can use [SmartSVN](http://www.smartsvn.com/) to restore lost pristine file.

Download and install it. It's not free but 30 days free trial should be enough to repair your repository. 

Open your working copy in **SmartSVN**. To repair, select ***Modify*** > ***Validate Admin Area...***

Enjoy!
This will do it too as a one-liner:

```
while [ 1 ] ; do OUTPUT=`svn cleanup 2>&1 | sed 's/^.* open file //' | sed 's/:.*$//' | sed "s/'//g"`;if [ "X${OUTPUT}" == "X" ] ; then   break; fi; echo $OUTPUT;touch $OUTPUT;done

```