SVNKitのコミット処理について、ご存知の方いらっしゃいましたら教えてください。
SVNKitにおいて、SVNにコミットする際は、リポジトリをチェックアウトしてそのワーキングコピーからファイルまたはフォルダをコミットしなければならないでしょうか?
チェックアウトせずに、ローカルファイルを指定URLに登録する処理は行えないのでしょうか?
追記
以下のようにソースコードを組みましたが、エラーが発生しています。
org.tmatesoft.svn.core.SVNException: svn: E155007: 'ディレクトリ' is not a working copy
【ソース】
// SVNKitの初期化
DAVRepositoryFactory.setup();
SVNURL url = SVNURL.parseURIDecoded(svnroot);
SVNRepository repos = SVNRepositoryFactory.create(url);
if (svnuser != null) {
ISVNAuthenticationManager authManager = SVNWCUtil
.createDefaultAuthenticationManager(svnuser,svnpass == null ? "" : svnpass);
repos.setAuthenticationManager(authManager);
}
//認証済レポジトリオブジェクトを取得
SVNRepository repository = com.getRepos(svnroot,svnuser,svnpass);
SVNClientManager manager = SVNClientManager.newInstance(
SVNWCUtil.createDefaultOptions(true),svnuser,svnpass );
manager.getCommitClient().doCommit( new File[]{new File(destpath)},
false,
"コメント内容",
false,
true
);
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。