如何在C ++中连接SVN服务器? [英] How to Connect SVN server in C++?
问题描述
我想连接一台svn服务器,并使用C ++将一个文件下载到我的计算机上.我该怎么做?
I want to connect an svn server and download one file to my computer by using C++. How can I make this?
推荐答案
您有一些选择:
- Set up WebDAV and use HTTP.
- Use the SVN client library and integrate using it.
我过去曾经做过两种方法.SVN客户端库实际上非常易于使用.
I've done both approaches in the past. The SVN client library is actually quite easy to use.
具有Subversion的版本控制中描述了Subversion客户端库..请特别注意第3章和 subversion.apache.org 获取源快照并阅读源代码用于命令行客户端.它位于< root>/subversion/clients/cmdline
中.我发现来源很容易理解.
The subversion client library is described in Version Control with Subversion. Pay particular attention to Chapter 3 and Chapter 8. I started by grabbing a source snapshot from subversion.apache.org and reading the source code for the command line client. It's in <root>/subversion/clients/cmdline
. I found that the source is easy enough to follow.
这篇关于如何在C ++中连接SVN服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!