[SharpSvn]将本地文件添加到存储库URI [英] [SharpSvn] Add local files to repository URI

查看:164
本文介绍了[SharpSvn]将本地文件添加到存储库URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在API附近挖了一下,看起来我需要做客户端.Import(path,uri,importArgs);



任何人都可以帮我这个吗?

Hi All,

I dug around the API a little more, and it looks like I need to do client.Import(path, uri, importArgs);

Can any one help me on this?

推荐答案

Hello Suman,



您可以在这里找到SharpSVN的API文档 [^ 。为了将文件添加到存储库中,有两个选项。

Hello Suman,

You can find the API documentation for SharpSVN here[^]. In order to add a file into the repository there are two options.


  1. 导入 - 通常使用此选项第一次将本地目录内容导入subversion存储库。我通常用它来创建带有标准文件的初始项目目录结构。 SharpSVN中有4种变体。



    • bool import(String,Uri) - 如果导入成功,则此选项返回true。第一个参数是递归导入文件夹的绝对路径。第二个参数是subversion存储库url,例如http://svn.foo.com/repository/products/myproject/trunk\".
    • bool import(String,Uri,SvnCommitResult) - 如果你想知道实际的错误,请使用此选项API返回False。
    • bool import(String,Uri,SvnImportArgs) - 使用此选项传递其他参数。例如要使用的日志消息,禁用自动属性设置等。
    • bool import(String,Uri,SvnImportArgs,SvnCommitResult) - 与上面类似,但是如果失败,您可以获得错误的确切详细信息

  1. Import - This option is generally used for the very first time to import the local directory contents into the subversion repository. I generally use it to create the initial project directory structure with standard files. There are 4 variants available in SharpSVN.

    • bool import(String, Uri) - This option returns true if import is successful. The first parameter is the absolute path to the folder to be imported recursively. The second argument is the subversion repository url e.g. "http://svn.foo.com/repository/products/myproject/trunk".
    • bool import(String, Uri, SvnCommitResult) - Use this option if you want to know the actual error when the API returns False.
    • bool import(String, Uri, SvnImportArgs) - Use this option to pass additional arguments. e.g. The log message to be used, disable automatic property settings etc.
    • bool import(String, Uri, SvnImportArgs, SvnCommitResult) - Similar to above but upon failure you can obtain the exact details for the error


这篇关于[SharpSvn]将本地文件添加到存储库URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆