错误:org.tmatesoft.svn.core.SVNException:svn:'D:\ Code \ MSCVE \ ADVISORIES'不受版本控制

时间:2011-12-28 07:07:49

标签: java svnkit

SVNURL url1 = SVNURL.parseURIEncoded("file:///E:/SVN/IDS/MSCVE")                System.out.println("*************"); String dstPath1="D:/code/MSCVE";
        //String dstPath3="D:/code/MSCVE";
        String dstPath3="D:\\Code\\MSCVE\\ADVISORIES";
        String destpath="D:/myworkingcopy1/CVE-2011-1880.doc";
        String dstPath2="file:///E:/SVN/IDS/MSCVE/CVE-2011-1284.doc";
SVNClientManager cm = SVNClientManager.newInstance();

        SVNCommitClient cc = cm.getCommitClient();
        System.out.println("CCCCCCCCCC");
        //System.out.println("cc" + cc.getOptions());
        System.out.println("before commiting");
        cc.doCommit(new File[] { new File(dstPath3) }, false,
                "XML file are added in the MSCVE folder.........added three more cve numbers in the 1284 doc ", false, true);
        //cc.doCommit(new File[] {"C:/Users/Kiran.Chinnapelli/AppData/Roaming/Subversion"}, false, "commiting", null, null, false, false, SVNDepth.FILES); 

错误:

  

org.tmatesoft.svn.core.SVNException:svn:'D:\ Code \ MSCVE \ ADVISORIES'不受版本控制

1 个答案:

答案 0 :(得分:0)

如果要创建名为“ADVISORIES”的文件夹,则需要先将其添加到SVN。 然后尝试下一步添加/更新文件。