Skip to content

Instantly share code, notes, and snippets.

@vs
Created August 30, 2011 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vs/1181688 to your computer and use it in GitHub Desktop.
Save vs/1181688 to your computer and use it in GitHub Desktop.
SVNKit: svn mkdir ^/tags/test
package org.tmatesoft.svn.core.javahl;
import org.tmatesoft.svn.core.*;
import org.tmatesoft.svn.core.internal.io.fs.*;
import org.tmatesoft.svn.core.wc.*;
public class MkDir {
public static void main(String[] args) throws SVNException {
FSRepositoryFactory.setup();
final SVNClientManager manager = SVNClientManager.newInstance();
final SVNCommitClient commitClient = manager.getCommitClient();
final SVNURL url = SVNURL.parseURIDecoded("file:///tmp/repo/tags/test");
final SVNProperties revisionProperties = new SVNProperties();
commitClient.doMkDir(new SVNURL[] {url}, "Added directory", revisionProperties, false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment