public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible, boolean pre16Compatible, boolean pre17Compatible, boolean with17Compatible) throws SVNException { return SVNRepositoryFactory.createLocalRepository(path, uuid, enableRevisionProperties, force, pre14Compatible, pre15Compatible, pre16Compatible, pre17Compatible, with17Compatible); }
/** * Creates a local blank FSFS-type repository. * A call to this routine is equivalent to * <code>createLocalRepository(path, null, enableRevisionProperties, force)</code>. * * @param path a repository root location * @param enableRevisionProperties enables or not revision property * modifications * @param force forces operation to run * @return a local URL (file:///) of a newly * created repository * @throws SVNException * @see #createLocalRepository(File, String, boolean, boolean) * @since 1.1 */ public static SVNURL createLocalRepository(File path, boolean enableRevisionProperties, boolean force) throws SVNException { return createLocalRepository(path, null, enableRevisionProperties, force); }
/** * Creates a local blank FSFS-type repository. * A call to this routine is equvalent to * <code>createLocalRepository(path, null, enableRevisionProperties, force)</code>. * * @param path a repository root location * @param enableRevisionProperties enables or not revision property * modifications * @param force forces operation to run * @return a local URL (file:///) of a newly * created repository * @throws SVNException * @see #createLocalRepository(File, String, boolean, boolean) * @since 1.1 */ public static SVNURL createLocalRepository(File path, boolean enableRevisionProperties, boolean force) throws SVNException { return createLocalRepository(path, null, enableRevisionProperties, force); }
/** * Creates a local blank FSFS-type repository. * A call to this routine is equivalent to * <code>createLocalRepository(path, null, enableRevisionProperties, force)</code>. * * @param path a repository root location * @param enableRevisionProperties enables or not revision property * modifications * @param force forces operation to run * @return a local URL (file:///) of a newly * created repository * @throws SVNException * @see #createLocalRepository(File, String, boolean, boolean) * @since 1.1 */ public static SVNURL createLocalRepository(File path, boolean enableRevisionProperties, boolean force) throws SVNException { return createLocalRepository(path, null, enableRevisionProperties, force); }
/** * Creates a local blank FSFS-type repository. * A call to this routine is equivalent to * <code>createLocalRepository(path, null, enableRevisionProperties, force)</code>. * * @param path a repository root location * @param enableRevisionProperties enables or not revision property * modifications * @param force forces operation to run * @return a local URL (file:///) of a newly * created repository * @throws SVNException * @see #createLocalRepository(File, String, boolean, boolean) * @since 1.1 */ public static SVNURL createLocalRepository(File path, boolean enableRevisionProperties, boolean force) throws SVNException { return createLocalRepository(path, null, enableRevisionProperties, force); }
/** * Creates an FSFS-type repository. * * This implementation uses {@link org.tmatesoft.svn.core.io.SVNRepositoryFactory#createLocalRepository(File, String, boolean, boolean)}}. * <p> * If <code>uuid</code> is <span class="javakeyword">null</span> a new uuid will be generated, otherwise * the specified will be used. * * <p> * If <code>enableRevisionProperties</code> is <span class="javakeyword">true</span>, an empty * pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to * revision properties of the newly created repository. * * <p> * If <code>force</code> is <span class="javakeyword">true</span> and <code>path</code> already * exists, deletes that path and creates a repository in its place. * * @param path a repository root dir path * @param uuid a repository uuid * @param enableRevisionProperties enables/disables changes to revision properties * @param force forces operation to run * @return a local URL (file:///) of a newly created repository * @throws SVNException * @see #doCreateRepository(File, String, boolean, boolean, boolean) * @since 1.1.0 */ public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force) throws SVNException { return SVNRepositoryFactory.createLocalRepository(path, uuid, enableRevisionProperties, force); }
/** * Creates an FSFS-type repository. * * This implementation uses {@link org.tmatesoft.svn.core.io.SVNRepositoryFactory#createLocalRepository(File, String, boolean, boolean)}}. * <p> * If <code>uuid</code> is <span class="javakeyword">null</span> a new uuid will be generated, otherwise * the specified will be used. * * <p> * If <code>enableRevisionProperties</code> is <span class="javakeyword">true</span>, an empty * pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to * revision properties of the newly created repository. * * <p> * If <code>force</code> is <span class="javakeyword">true</span> and <code>path</code> already * exists, deletes that path and creates a repository in its place. * * @param path a repository root dir path * @param uuid a repository uuid * @param enableRevisionProperties enables/disables changes to revision properties * @param force forces operation to run * @return a local URL (file:///) of a newly created repository * @throws SVNException * @see #doCreateRepository(File, String, boolean, boolean, boolean) * @since 1.1.0 */ public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force) throws SVNException { return SVNRepositoryFactory.createLocalRepository(path, uuid, enableRevisionProperties, force); }
/** * Creates an FSFS-type repository. * * This implementation uses {@link org.tmatesoft.svn.core.io.SVNRepositoryFactory#createLocalRepository(File, String, boolean, boolean)}}. * <p> * If <code>uuid</code> is <span class="javakeyword">null</span> a new uuid will be generated, otherwise * the specified will be used. * * <p> * If <code>enableRevisionProperties</code> is <span class="javakeyword">true</span>, an empty * pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to * revision properties of the newly created repository. * * <p> * If <code>force</code> is <span class="javakeyword">true</span> and <code>path</code> already * exists, deletes that path and creates a repository in its place. * * @param path a repository root dir path * @param uuid a repository uuid * @param enableRevisionProperties enables/disables changes to revision properties * @param force forces operation to run * @return a local URL (file:///) of a newly created repository * @throws SVNException * @since 1.1 */ public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force) throws SVNException { return SVNRepositoryFactory.createLocalRepository(path, uuid, enableRevisionProperties, force); }
/** * Creates an FSFS-type repository. * * This implementation uses {@link org.tmatesoft.svn.core.io.SVNRepositoryFactory#createLocalRepository(File, String, boolean, boolean)}}. * <p> * If <code>uuid</code> is <span class="javakeyword">null</span> a new uuid will be generated, otherwise * the specified will be used. * * <p> * If <code>enableRevisionProperties</code> is <span class="javakeyword">true</span>, an empty * pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to * revision properties of the newly created repository. * * <p> * If <code>force</code> is <span class="javakeyword">true</span> and <code>path</code> already * exists, deletes that path and creates a repository in its place. * * @param path a repository root dir path * @param uuid a repository uuid * @param enableRevisionProperties enables/disables changes to revision properties * @param force forces operation to run * @return a local URL (file:///) of a newly created repository * @throws SVNException * @see #doCreateRepository(File, String, boolean, boolean, boolean) * @since 1.1.0 */ public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force) throws SVNException { return SVNRepositoryFactory.createLocalRepository(path, uuid, enableRevisionProperties, force); }
return createLocalRepository(path, uuid, enableRevisionProperties, force, false);
return createLocalRepository(path, uuid, enableRevisionProperties, force, false);
return SVNRepositoryFactory.createLocalRepository(path, uuid, enableRevisionProperties, force, pre14Compatible, pre15Compatible, pre16Compatible);
return createLocalRepository(path, uuid, enableRevisionProperties, force, false);
/** * Creates a local blank FSFS-type repository. A call to this routine is * equivalent to * <code>createLocalRepository(path, null, enableRevisionProperties, force)</code> * . * * @param respository * a repository root location * @return a local URL (file:///) of a newly created repository */ public static SVNURL createLocalRepository(File respository) { try { return SVNRepositoryFactory.createLocalRepository(respository, true, false); } catch (SVNException e) { throw new RuntimeException(String.format("pj.save.error.createRepository", "创建仓库失败.{0}", new Object[] { respository.getAbsolutePath() }) + " : " + e.getMessage()); } }
/** * create a subversion repository. * * @param path the path where the repository will been * created. * @param disableFsyncCommit disable to fsync at the commit (BDB). * @param keepLog keep the log files (BDB). * @param configPath optional path for user configuration files. * @param fstype the type of the filesystem (BDB or FSFS) * @throws ClientException throw in case of problem */ public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException { if (BDB.equalsIgnoreCase(fstype)) { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); } try { SVNRepositoryFactory.createLocalRepository(new File(path), false, false); if (configPath != null) { } } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * create a subversion repository. * * @param path the path where the repository will been * created. * @param disableFsyncCommit disable to fsync at the commit (BDB). * @param keepLog keep the log files (BDB). * @param configPath optional path for user configuration files. * @param fstype the type of the filesystem (BDB or FSFS) * @throws ClientException throw in case of problem */ public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException { if (BDB.equalsIgnoreCase(fstype)) { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); } try { SVNRepositoryFactory.createLocalRepository(new File(path), false, false); if (configPath != null) { } } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
/** * create a subversion repository. * * @param path the path where the repository will been * created. * @param disableFsyncCommit disable to fsync at the commit (BDB). * @param keepLog keep the log files (BDB). * @param configPath optional path for user configuration files. * @param fstype the type of the filesystem (BDB or FSFS) * @throws ClientException throw in case of problem */ public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException { if (BDB.equalsIgnoreCase(fstype)) { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); } try { SVNRepositoryFactory.createLocalRepository(new File(path), false, false); if (configPath != null) { } } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } }
public void create(File path, boolean disableFsyncCommit, boolean keepLog, File configPath, String fstype) throws ClientException { beforeOperation(); if (BDB.equalsIgnoreCase(fstype)) { notImplementedYet("Only " + FSFS + " type of repositories are supported by " + getVersion().toString()); } try { SVNRepositoryFactory.createLocalRepository(path, false, false); if (configPath != null) { } } catch (SVNException e) { throwException(e, client); } finally { afterOperation(); } }
public static String createSVNRepository(File directory) throws IOException, SVNException { clean(directory); SVNURL url = SVNRepositoryFactory.createLocalRepository(directory, true , false); return url.toString(); } }
public SvnTesterSvnKit() throws SVNException { try { repoDir = TestHelper.createTempDir("git-as-svn"); url = SVNRepositoryFactory.createLocalRepository(repoDir, true, true); } catch (IOException e) { throw new SVNException(SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e)); } }