Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

svn

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

like image 518
ericn Avatar asked Sep 05 '13 04:09

ericn


2 Answers

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.

like image 95
Noah Avatar answered Oct 20 '22 16:10

Noah


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

like image 27
Marnen Laibow-Koser Avatar answered Oct 20 '22 16:10

Marnen Laibow-Koser