Can't open .svn/text-base/file.svn-base?

前端 未结 12 1887
长发绾君心
长发绾君心 2020-12-13 08:17

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

相关标签:
12条回答
  • 2020-12-13 08:54

    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

    0 讨论(0)
  • 2020-12-13 08:55

    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.

    0 讨论(0)
  • 2020-12-13 08:57

    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).

    0 讨论(0)
  • 2020-12-13 08:59

    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).

    0 讨论(0)
  • 2020-12-13 09:01

    Solution (in case of corrupt SVN-directory; cleanup, etc. doeesn't work)

    1. Backup (rename directory)
    2. Checkout again
    3. Rename new directory
    4. Rename old directory back to old name
    5. Try to commit again (if necessary in small portions)
    6. Whenever an error occurs: copy the SVN-file in question from new directory to corrupt sources
    7. Repeat until happy ;)
    0 讨论(0)
  • 2020-12-13 09:07

    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.

    0 讨论(0)
提交回复
热议问题