⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svnclient.java

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     * Sets the commit message handler. This allows more complex commit message     * with the list of the elements to be commited as input.     * @param messageHandler    callback for entering commit messages     *                          if this is set the message parameter is ignored.     */    public native void commitMessageHandler(CommitMessage messageHandler);    /**     * Sets a file for deletion.     * @param path      path or url to be deleted     * @param message   if path is a url, this will be the commit message.     * @param force     delete even when there are local modifications.     * @exception ClientException     */    public native void remove(String[] path, String message, boolean force)            throws ClientException;    /**     * Reverts a file to a pristine state.     * @param path      path of the file.     * @param recurse   recurse into subdirectories     * @exception ClientException     */    public native void revert(String path, boolean recurse)            throws ClientException;    /**     * Adds a file to the repository.     * @param path      path to be added.     * @param recurse   recurse into subdirectories     * @exception ClientException     */    public void add(String path, boolean recurse)throws ClientException    {        add(path, recurse, false);    }    /**     * Adds a file to the repository.     * @param path      path to be added.     * @param recurse   recurse into subdirectories     * @param force     if adding a directory and recurse true and path is a     *                  directory, all not already managed files are added.     * @exception ClientException     * @since 1.2     */    public native void add(String path, boolean recurse, boolean force)            throws ClientException;    /**     * Updates the directory or file from repository     * @param path target file.     * @param revision the revision number to update.     *                 Revision.HEAD will update to the     *                 latest revision.     * @param recurse recursively update.     * @exception ClientException     */    public long update(String path, Revision revision, boolean recurse)            throws ClientException    {        return update(new String[]{path}, revision, recurse, false)[0];    }    /**     * Updates the directories or files from repository     * @param path array of target files.     * @param revision the revision number to update.     *                 Revision.HEAD will update to the     *                 latest revision.     * @param recurse recursively update.     * @param ignoreExternals externals will be ignore during update     * @exception ClientException     * @since 1.2     */    public native long[] update(String[] path, Revision revision,                                boolean recurse, boolean ignoreExternals)            throws ClientException;    /**     * Commits changes to the repository.     * @param path      files to commit.     * @param message   log message.     * @param recurse   whether the operation should be done recursively.     * @return Returns a long representing the revision. It returns a     *         -1 if the revision number is invalid.     * @exception ClientException     */    public long commit(String[] path, String message, boolean recurse)            throws ClientException    {        return commit(path, message, recurse, false);    }    /**     * Copies a versioned file with the history preserved.     * @param srcPath   source path or url     * @param destPath  destination path or url     * @param message   commit message if destPath is an url     * @param revision  source revision     * @exception ClientException     */    public native void copy(String srcPath, String destPath, String message,                            Revision revision) throws ClientException;    /**     * Moves or renames a file.     * @param srcPath   source path or url     * @param destPath  destination path or url     * @param message   commit message if destPath is an url     * @param revision  source revision     * @param force     even with local modifications.     * @exception ClientException     */    public void move(String srcPath, String destPath, String message,                            Revision revision, boolean force)            throws ClientException    {        move(srcPath, destPath, message, force);    }    /**     * Moves or renames a file.     *     * @param srcPath  source path or url     * @param destPath destination path or url     * @param message  commit message if destPath is an url     * @param force    even with local modifications.     * @throws ClientException     * @since 1.2     */    public native void move(String srcPath, String destPath, String message,                            boolean force) throws ClientException;    /**     * Creates a directory directly in a repository or creates a     * directory on disk and schedules it for addition.     * @param path      directories to be created     * @param message   commit message to used if path contains urls     * @exception ClientException     */    public native void mkdir(String[] path, String message)            throws ClientException;    /**     * Recursively cleans up a local directory, finishing any     * incomplete operations, removing lockfiles, etc.     * @param path a local directory.     * @exception ClientException     */    public native void cleanup(String path) throws ClientException;    /**     * Removes the 'conflicted' state on a file.     * @param path      path to cleanup     * @param recurse   recurce into subdirectories     * @exception ClientException     */    public native void resolved(String path, boolean recurse)            throws ClientException;    /**     * Exports the contents of either a subversion repository into a     * 'clean' directory (meaning a directory with no administrative     * directories).     * @param srcPath   the url of the repository path to be exported     * @param destPath  a destination path that must not already exist.     * @param revision  the revsion to be exported     * @param force     set if it is ok to overwrite local files     * @exception ClientException     */    public long doExport(String srcPath, String destPath,                                Revision revision, boolean force)            throws ClientException    {        return doExport(srcPath, destPath, revision, revision, force,                false, true, null);    }    /**     * Exports the contents of either a subversion repository into a     * 'clean' directory (meaning a directory with no administrative     * directories).     *     * @param srcPath         the url of the repository path to be exported     * @param destPath        a destination path that must not already exist.     * @param revision        the revsion to be exported     * @param pegRevision     the revision to interpret srcPath     * @param force           set if it is ok to overwrite local files     * @param ignoreExternals ignore external during export     * @param recurse         recurse to subdirectories     * @param nativeEOL       which EOL characters to use during export     * @throws ClientException     * @since 1.2     */    public native long doExport(String srcPath, String destPath,                                Revision revision, Revision pegRevision,                                boolean force, boolean ignoreExternals,                                boolean recurse, String nativeEOL)            throws ClientException;    /**     * Update local copy to mirror a new url.     * @param path      the working copy path     * @param url       the new url for the working copy     * @param revision  the new base revision of working copy     * @param recurse   traverse into subdirectories     * @exception ClientException     */    public native long doSwitch(String path, String url, Revision revision,                                boolean recurse) throws ClientException;    /**     * Import a file or directory into a repository directory  at     * head.     * @param path      the local path     * @param url       the target url     * @param message   the log message.     * @param recurse   traverse into subdirectories     * @exception ClientException     */    public native void doImport(String path, String url, String message,                                boolean recurse) throws ClientException;    /**     * Merge changes from two paths into a new local path.     * @param path1         first path or url     * @param revision1     first revision     * @param path2         second path or url     * @param revision2     second revision     * @param localPath     target local path     * @param force         overwrite local changes     * @param recurse       traverse into subdirectories     * @exception ClientException     */    public void merge(String path1, Revision revision1, String path2,                             Revision revision2, String localPath,                             boolean force, boolean recurse)            throws ClientException    {        merge(path1,revision1, path2, revision2, localPath, force, recurse,                false, false);    }    /**     * Merge changes from two paths into a new local path.     *     * @param path1          first path or url     * @param revision1      first revision     * @param path2          second path or url     * @param revision2      second revision     * @param localPath      target local path     * @param force          overwrite local changes     * @param recurse        traverse into subdirectories     * @param ignoreAncestry ignore if files are not related     * @param dryRun         do not change anything     * @throws ClientException     * @since 1.2     */    public native void merge(String path1, Revision revision1, String path2,                             Revision revision2, String localPath,                             boolean force, boolean recurse,                             boolean ignoreAncestry, boolean dryRun)            throws ClientException;    /**     * Merge changes from two paths into a new local path.     *     * @param path           path or url     * @param pegRevision    revision to interpret path     * @param revision1      first revision     * @param revision2      second revision     * @param localPath      target local path     * @param force          overwrite local changes     * @param recurse        traverse into subdirectories     * @param ignoreAncestry ignore if files are not related     * @param dryRun         do not change anything     * @throws ClientException     * @since 1.2     */    public native void merge(String path, Revision pegRevision,                             Revision revision1, Revision revision2,                             String localPath, boolean force, boolean recurse,                             boolean ignoreAncestry, boolean dryRun)           throws ClientException;    /**     * Display the differences between two paths     * @param target1       first path or url     * @param revision1     first revision     * @param target2       second path or url     * @param revision2     second revision     * @param outFileName   file name where difference are written     * @param recurse       traverse into subdirectories     * @exception ClientException     */    public void diff(String target1, Revision revision1, String target2,                            Revision revision2, String outFileName,                            boolean recurse) throws ClientException    {        diff(target1, revision1, target2, revision2, outFileName, recurse,                true, false, false);    }    /**     * Display the differences between two paths     *     * @param target1        first path or url     * @param revision1      first revision     * @param target2        second path or url     * @param revision2      second revision     * @param outFileName    file name where difference are written     * @param recurse        traverse into subdirectories     * @param ignoreAncestry ignore if files are not related     * @param noDiffDeleted  no output on deleted files     * @param force          diff even on binary files     * @throws ClientException     * @since 1.2     */    public native void diff(String target1, Revision revision1, String target2,                       Revision revision2, String outFileName, boolean recurse,                       boolean ignoreAncestry, boolean noDiffDeleted,                       boolean force) throws ClientException;    {        //To change body of implemented methods use File | Settings | File Templates.    }    /**     * Display the differences between two paths     *     * @param target         path or url     * @param pegRevision    revision tointerpret target     * @param startRevision  first Revision to compare     * @param endRevision    second Revision to compare     * @param outFileName    file name where difference are written     * @param recurse        traverse into subdirectories     * @param ignoreAncestry ignore if files are not related     * @param noDiffDeleted  no output on deleted files     * @param force          diff even on binary files     * @throws ClientException     * @since 1.2     */    public native void diff(String target, Revision pegRevision,                            Revision startRevision, Revision endRevision,                            String outFileName, boolean recurse,                            boolean ignoreAncestry, boolean noDiffDeleted,                            boolean force) throws ClientException;    /**     * Retrieves the properties of an item     * @param path  the path of the item     * @return array of property objects     */    public PropertyData[] properties(String path) throws ClientException    {        return properties(path, null);    }    /**     * Retrieves the properties of an item     *     * @param path     the path of the item     * @param revision the revision of the item     * @return array of property objects     * @since 1.2     */    public PropertyData[] properties(String path, Revision revision)            throws ClientException    {        return properties(path, revision, revision);    }    /**     * Retrieves the properties of an item     *     * @param path        the path of the item     * @param revision    the revision of the item     * @param pegRevision the revision to interpret path     * @return array of property objects     * @since 1.2     */    public native PropertyData[] properties(String path, Revision revision,                                            Revision pegRevision)            throws ClientException;    /**     * Sets one property of an item with a String value     * @param path      path of the item     * @param name      name of the property     * @param value     new value of the property     * @param recurse   set property also on the subdirectories     * @throws ClientException     */    public void propertySet(String path, String name, String value,                                   boolean recurse) throws ClientException    {        propertySet(path, name, value, recurse, false);    }    /**     * Sets one property of an item with a String value     *     * @param path    path of the item     * @param name    name of the property     * @param value   new value of the property     * @param recurse set property also on the subdirectories     * @param force   do not check if the value is valid     * @throws ClientException     * @since 1.2     */    public native void propertySet(String path, String name, String value,                                   boolean recurse, boolean force)            throws ClientException;    /**     * Sets one property of an item with a byte array value     * @param path      path of the item     * @param name      name of the property     * @param value     new value of the property     * @param recurse   set property also on the subdirectories

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -