Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pristine svn-base file missing

Tags:

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?

like image 975
Alexander Serebrenik Avatar asked Sep 03 '12 07:09

Alexander Serebrenik


2 Answers

This problem:

cannot find the file .svn\pristine\24\24fd530d4bd82341fb514ab912c9e10adbc4ad89.svn-base

I copied a svn-base from other file and renamed this with 24fd530d4bd82341fb514ab912c9e10adbc4ad89.svn-base. And perform a clean up operation. After that I met another file missing. Using the same way, and at last I fixed this problem.

From a Windows command line with SilkSVN installed:

cd project directory svn status 

This will generate an error. Select and copy the directory and filename text then paste:

echo > .svn\pristine\<paste> 

For example:

echo > 24\24fd530d4bd82341fb514ab912c9e10adbc4ad89.svn-base 

With this knowledge in hand, it would be reasonably trivial to write a batch file that can fix these problems automatically for everyone. The svn command will generate an %ERRORLEVEL% value that can be checked for failure.

like image 156
chunguiw Avatar answered Sep 23 '22 13:09

chunguiw


I solved this by

  1. Creating an empty file /workingdirectory/.svn/pristine/da/da39a3ee5e6b4b0d3255bfef95601800afd80009.svn-base

  2. Run svn cleanup

like image 24
Nawwar Elnarsh Avatar answered Sep 25 '22 13:09

Nawwar Elnarsh