0
假設我現有的支支\使用SVNKit以下方式創建一個分支1:setCopyContents SVNKit。如何在無分支內容的情況下在現有分支上創建分支
SVNCopyClient copyClient = new SVNCopyClient(authManager, options);
SVNCopySource copySource = new SVNCopySource(SVNRevision.UNDEFINED, SVNRevision.HEAD, sourceUrl);
copySource.setCopyContents(false);
copyClient.doCopy(new SVNCopySource[] { copySource }, toUrl,
false, // isMove
true, // make parents
true, // failWhenDstExists
commitMessage, // commit message
null); // SVNProperties
所有作品創造不錯,分支。然後我想使用以前的代碼在同一個源分支上創建Branch2。創建了Branch2,但包含了現有的源分支conent,即Branch1。所以分支結構是:
- 分行\
- 分行\ Branch1的
- 分行\店2 \ Branch1的
似乎SVNKit使用源分支,包括其作爲店2源內容。根據文檔setCopyContents(false)應該排除這個內容,但它不。我究竟做錯了什麼?