Currently I am working on a C#.net project (visual studio 2005). I could checkout a project from the SVN repository, make changes to a file and commit.
目前我正在开发一个C#.net项目(visual studio 2005)。我可以从SVN存储库签出一个项目,对文件进行更改并提交。
But, how can I specify the checkout depth (sparse checkout) and checkout a single file by using sharpSVN DLL ? Please help.
但是,如何通过使用sharpSVN DLL指定结账深度(稀疏结账)和结账单个文件?请帮忙。
2 个解决方案
#1
Subversion clients do not, so far as I know, generally support single-file checkouts. You can certainly get a single file (with nothing more than a simple HTTP GET request to the URL), but checking back in changes will be more difficult.
据我所知,Subversion客户端通常不支持单文件签出。你当然可以获得一个文件(只有一个简单的HTTP GET请求到URL),但重新检查更改将更加困难。
The reason for this is that Subversion wants to create its metadata directories (.svn
) to track properties, URLs, the old version of the file, etc. That's hard to do in a single file.
原因是Subversion想要创建其元数据目录(.svn)来跟踪属性,URL,文件的旧版本等。这在单个文件中很难做到。
#2
Like @derobert said, you cannot check out a single file. The best you can do is a non-recursive checkout of that file's directory.
就像@derobert所说,你不能查看单个文件。您可以做的最好的是对该文件目录的非递归检出。
#1
Subversion clients do not, so far as I know, generally support single-file checkouts. You can certainly get a single file (with nothing more than a simple HTTP GET request to the URL), but checking back in changes will be more difficult.
据我所知,Subversion客户端通常不支持单文件签出。你当然可以获得一个文件(只有一个简单的HTTP GET请求到URL),但重新检查更改将更加困难。
The reason for this is that Subversion wants to create its metadata directories (.svn
) to track properties, URLs, the old version of the file, etc. That's hard to do in a single file.
原因是Subversion想要创建其元数据目录(.svn)来跟踪属性,URL,文件的旧版本等。这在单个文件中很难做到。
#2
Like @derobert said, you cannot check out a single file. The best you can do is a non-recursive checkout of that file's directory.
就像@derobert所说,你不能查看单个文件。您可以做的最好的是对该文件目录的非递归检出。