ericn
ericn

Reputation: 13103

Cannot upgrade SVN - Can't open directory ./svn/text-base No such file or directory

There seems to be a infinite loop of troubles here which I don't know how to overcome.

I have this directory which used to be under SVN 1.6 so now when I do svn status I'm advised to upgrade SVN which makes sense. Strangely, when I run svn upgrade I got an error:

[root@141-16 src]# svn upgrade
svn: E000002: Can't open directory '[current directory]/.svn/text-base': No such file or directory

How am I supposed to solve this problem?

svn status output:

svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '[current directory]' is too old (format 10, created by Subversion 1.6)

My SVN version is 1.7.11

Upvotes: 11

Views: 14427

Answers (5)

Dmitry S. Karasev
Dmitry S. Karasev

Reputation: 49

I had this problem too and fixed it by continuously making touch with filename SVN missed. After each touch make svn clean and then svn up. It should help

Upvotes: 4

Jimmy
Jimmy

Reputation: 111

text-base is not a file, the command svn upgrade expects this as a directory then:

mkdir .svn/text-base

and then

svn upgrade

Upvotes: 1

Noah
Noah

Reputation: 516

I had this same problem when I was messing with some old work. I used the find command: find . -type d -name .svn -exec mkdir {}/text-base \; to automatically make all of those directories.

Upvotes: 6

visaju
visaju

Reputation: 11

I had slightly same error:

svn: Can't open file 'XY/.svn/tmp/text-base/analyticstracking.php.svn-base': No such file or directory

Using svn cleanup . on the directory worked for me.

Upvotes: 1

Marnen Laibow-Koser
Marnen Laibow-Koser

Reputation: 6337

I had this problem too, and svn cleanup didn't help. What I wound up doing was creating all the directories it complained about not finding (just a plain mkdir, nothing else), then running svn upgrade. That seemed to work.

I switched to Git years ago, but this is a legacy project. I forgot how much Subversion annoys me by comparison. :P

Upvotes: 4

Related Questions