有沒有什麼辦法可以檢查用戶是否有對某個存儲庫路徑的可寫權限?我現在要做的就是努力創建目錄,然後將其刪除,以檢查用戶是否有寫訪問:檢查顛覆用戶的可寫訪問
svn mkdir --username username --password password --message "check whether user username has repository writable access" "svn://localhost:3129/test"
svn delete --username username --password password --message "check whether user username has repository writable access" "svn://localhost:3129/test"
的問題是,這些操作執行太經常的應用程序源代碼的一部分。結果是,如果用戶具有可寫訪問權限,存儲庫會得到太多不必要的提交。
是否有類似於svn checkaccess --username username --password password svn://localhost:3129/test
或任何其他解決方法的命令,以便我不需要始終創建臨時目錄?
其實,我想過用svnkit在java上重寫SVN模塊。但是我仍然希望能夠找到基於php的解決方案,以便我不需要重寫我的應用程序。 – altern 2012-07-21 18:15:32