[メモ] 31 December 2008 はてなブックマーク - SVNのワーキングコピーを複製して使うとエラーがでる。 Twitterでつぶやく

SVNのワーキングコピーを複製して使うとエラーがでる。

上海だと回線が遅いので、先に一ヶ所でチェックアウトしてSVNのワーキングコピーを複製して利用したかったのだが、そのまま利用しようとするとこんな感じエラーが出て困った。
svn: Can't open '.svn/tmp/tempfile.tmp': No such file or directory

対処法がここ(svn « Design is difficult)に書いてあった。
下記のスクリプトを複製したワーキングコピーの直下において実行すればとりあえずOK。

#!/bin/bash
# Rebuilds empty directories which are lost
# by HG but required by SVN
for d in `find . -type d | grep /.svn$`;
do
# -p to make $d/tmp parent directory
`mkdir -p $d/tmp/prop-base`
`mkdir $d/tmp/props`
`mkdir $d/tmp/text-base`
done

複製時にtmp以下がコピられてないのかな?
ちゃんと原因調査が必要。


Comments

RodriquezMelisa wrote:

If you want to buy a car, you will have to get the <a href="http://bestfinance-blog.com">loan</a>. Furthermore, my brother all the time takes a credit loan, which occurs to be really rapid.

13 December 2010 at 01:51

Add Comment