svn: Can't open file 'PATH/TO/YOUR/FILES/.svn/lock': Permission denied
如果出現上面的異常信息,說明你需要重置PATH/TO/YOUR/FILES/目錄的svn權限和目錄所有者,文件包括隱藏的.svn目錄,這時你需要用root權限執行以下命令:
# 進入需要重置權限的目錄
cd /PATH/TO/MY/PROJECT# 重置ownership
# NOTE: replace apache.staff(用戶名.用戶組) with your user and group
sudo find . -exec chown apache.staff {} \;# 重置permissions
# NOTE: replace 2770 with your file permissions
sudo find . -exec chmod 2770 {} \;# Now you can run the cleanup command to repair your .svn folders
svn cleanup