2
2

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 5 years have passed since last update.

Subversionからロック中ファイルの一覧を取得する(bash)

Posted at

リポジトリがあるサーバ上であれば「svnadmin lslocks」が使えますが、管理者権限が付与されていないことも有ると思います。
以下に示すのはクライアントマシンから取得する方法です。

bash用

svn list http://{PATH}/ -R --verbose | awk '{if($3=="O"){print $8}}' | while read i
do
svn info http://{PATH}/$i | awk '{if($1=="URL:"){url=$2;}else if($1=="ロック所有者:"){user=$2}else if($1=="ロック作成日時:"){print user","$2,$3","url }}'
done > lock.csv

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?