Can't open .svn/text-base/file.svn-base?
SvnTortoisesvnSvn Problem Overview
I'm using TortoiseSVN. I just made quite a few changes to my working copy and now I went to do a commit some of the files went through but at one file named Search.aspx.cs it says
Commit failed (details follow):
Can't open file
'C:\-----\trunk\.svn\text-base\Search.aspx.cs.svn-base':
The system cannot find the file specified.
I have tried doing a SVN update and SVN cleanup and nothing is restoring this file. I can't even create a diff because it gives a similar error about missing files. How do I fix this? What did I do to cause it?
Svn Solutions
Solution 1 - Svn
Does this seem like a possible answer to your situation?
(from http://www.uwplatt.edu/csse/tools/subversion/subversion-help.html)
> "Failed to add file '(name here)': object of the same name already > exists. > > or > > "Can't open file 'folder.svn\tmp\text-base\file.svn-base': > The system cannot find the file > specified." > > Both mean that two files in the same > folder have the same name except for > capitalization; for example > "Readme.txt" and "README.TXT". Unix > and Subversion are case-sensitive, so > the files are considered to be > completely unrelated. But in Windows > is not case-sensitive, so when it > tries to update README.TXT on top of > Readme.txt (say), it breaks. > > The surest way to fix the problem is > to log in to a Unix system (such as > io.uwplatt.edu) and use the unix notes > to check out the repository there. You > can then use the svn mv command to > rename one of the files. If you are in > the middle of trying to add a file to > your repository, you might try using > TortoiseSVN->Rename... to rename the > existing file to something entirely > different and then updating. Note that > you need to use the TortoiseSVN rename > commands; merely renaming the file in > Windows Explorer won't fix your > problems.
I had this same error, and using Tortoise SVN's repo browser was able to confirm that there were two files in the repository with the same name only varying by upper/lowercase letters. You can also fix this issue through the repo browser by deleting one of the files (you can do a diff first through repo browser to make sure you have what you need).
Solution 2 - Svn
You can copy working file: C:-----\trunk\Search.aspx.cs
to the missing one: C:-----\trunk.svn\text-base\Search.aspx.cs.svn-base
and it will do the trick.
Solution 3 - Svn
Hi i meet similar problem today.
cannot find the file .svn\pristine\24\24fd530d4bd82341fb514ab912c9e10adbc4ad89.svn-base And i use the simple way to fix this problem.
First i delete the copy folder of this project And then i look up this file did not exist under that folder.so i just copy a svn-base from other file and rename this with 24fd530d4bd82341fb514ab912c9e10adbc4ad89.svn-base.And then do the clean up operation. After that i meet another file missing.using the same way and at last i fix this problem. Hope it can help you
in other words the solution is create a new svn-base file with the missing files name
Solution 4 - Svn
Posting this for those who have the same problem where it`s not related to the same filename in different capitalization/case:
I`m not sure what causes it, but this fix worked for me:
- checkout the section in question to a new temp location
- back up (in case this fails) and delete the .svn folder in your main location
- replace the .svn folder in your main location with the one from the temp location
- commit
This worked for me. I had only one file changed. Somehow the .svn folder became corrupt. Please back up your work before doing this.
Solution 5 - Svn
For me the probleme was : case sensitive
svn repository commit under Linux : 2 files with the same name except for capitalization svn repository updated under Windows : Error durying update or checkout => The system cannot find the file specified.
Solution 6 - Svn
I had similar kind of issue "(Can't open file 'folder.svn\tmp\text-base\file.svn-base': The system cannot find the file specified")."
It was not because of case-sensitivity issue. But because the file path was too long. So I renamed the folder with a shorter name and moved it right inside C Drive and checked in successfully.
So if it is not case sensitivity, please watch for length of the full path to the file as well.
Solution 7 - Svn
I had this problem after accidentally wiping empty .svn/tmp folders (and all other empty folders on my HD). None of the above solutions, except restoring an empty .svn/tmp folder helped (for all .svn folders).
Solution 8 - Svn
It looks like your working copy is corrupted - the SVN base file for Search.aspx.cs is missing.
What I do in a situation like this to do a separate check-out in another directory to make a new working copy on the base, export my modified working copy, and copy the export over the new working copy.
Solution 9 - Svn
Did the rest of your changes go in ok?
If they did copy aside the offending file, kill the directory, check out a fresh copy and add the file back
Solution 10 - Svn
I just checked back in here because my TSVN just triggered the same error.
In my case a simple 'clean up' on the corresponding directories helped.
Solution 11 - Svn
Solution (in case of corrupt SVN-directory; cleanup, etc. doeesn't work)
- Backup (rename directory)
- Checkout again
- Rename new directory
- Rename old directory back to old name
- Try to commit again (if necessary in small portions)
- Whenever an error occurs: copy the SVN-file in question from new directory to corrupt sources
- Repeat until happy ;)
Solution 12 - Svn
Batch solution for this awfull issue.
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *.svn') do (
if not exist %%i\text-base (
mkdir "%%i\text-base"
) else (
echo already exist "%%i\text-base"
)
)