1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MSYS2 svnでリポジトリを扱う際の注意点

Posted at

msys2/subversionでリポジトリを扱う際の注意点。

動作環境

  • Windows 10 Pro 2004
  • msys/subversion 1.14.0-2

svnadminがPermission denied

ローカルリポジトリを作成できない。

失敗例

$ svnadmin create svnrepo
svnadmin: E000013: Can't open file 'svnrepo/db/revprops/0/0': Permission denied

成功例

 あらかじめmsys2/Mingw64/Mingw32ターミナルを管理者として起動する。管理者権限があるとプロンプトが "#" に替わり、svnadminでリポジトリを作成できるようになる。
 ちなみに、TortoiseSVNのsvnadmin.exeではあらかじめコマンドプロンプトを管理者権限で起動しなくてもリポジトリを作成できる。msys2固有の問題。

# svnadmin create svnrepo

svn checkoutに失敗する

(本来は非奨励だが)共有フォルダのリポジトリにアクセスする。

失敗例

lsコマンドでフォルダ内を閲覧できるか確認する(この段階では成功)。

$ ls //localhost/c$/home/svn/svnrepo
README.txt  conf  db  format  hooks  locks

次に、lsコマンドをsvn checkoutに置き換えてチェックアウトしようとするが、チェックアウトできない。

$ svn co //localhost/c$/home/svn/svnrepo
svn: E205000: Try 'svn help checkout' for more information
svn: E205000: Error parsing arguments

file://に変更するとメッセージが変わるが、依然としてアクセスできない。

$ svn co file://localhost/c$/home/svn/svnrepo
svn: E170013: Unable to connect to a repository at URL 'file://localhost/c$/home/svn/svnrepo'
svn: E180001: Unable to open repository 'file://localhost/c$/home/svn/svnrepo'

$が悪さをしていると思い、エスケープしてもアクセスできない。

$ svn co file://localhost/c\$/home/svn/svnrepo
svn: E170013: Unable to connect to a repository at URL 'file://localhost/c$/home/svn/svnrepo'
svn: E180001: Unable to open repository 'file://localhost/c$/home/svn/svnrepo'

成功例

$を削除するとアクセスできた。エラーの真因は不明。

$ svn co file://localhost/c/home/svn/svnrepo
Checked out revision 0.
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?