File baseDirectory = workDir;
File reposRoot = new File(baseDirectory, "tempRepository");
File wcRoot = new File(workDir, "working_copy");
SVNClientManager clientManager = SVNClientManager.newInstance();
SVNAdminClient adminClient = clientManager.getAdminClient();
SVNDiffClient diffClient = clientManager.getDiffClient();
DefaultSVNOptions options = (DefaultSVNOptions) diffClient.getOptions();
options.setConflictHandler(new ConflictResolverHandler());
SVNCommitClient commitClient = clientManager.getCommitClient();
boolean fileRepo = true;
String url = "svn://192.168.56.101/project6";
final SVNURL reposURL = (fileRepo? SVNURL.fromFile(reposRoot) : SVNURL.parseURIEncoded(url)),
demoURL = reposURL.appendPath("demo", false);
if (fileRepo)
adminClient.doCreateRepository(reposRoot, null, true, true, false, false);
else
{
SubversionSubmitter.setUpSVNKit();
//SVNRepository repository = SVNRepositoryFactory.create(reposURL);
ISVNAuthenticationManager m = SVNWCUtil.createDefaultAuthenticationManager("harry", "secret");