【问题标题】:Using sharpsvn with a local repository将 sharpsvn 与本地存储库一起使用
【发布时间】:2010-08-22 22:19:07
【问题描述】:

我正在为.NET 使用sharpsvn dll。我是使用 subversion 的新手,我希望我的存储库位于文件系统而不是远程服务器上。

可以这样使用sharpsvn吗?我的意思是,它是否从 c:\somewhere 检出到 c:\somewhere-else?

【问题讨论】:

    标签: c# .net svn sharpsvn


    【解决方案1】:

    您可以创建本地 SVN 存储库。我不知道sharpsvn 库是如何工作的,但是你可以通过命令行svn 客户端来做到这一点。

    C:\>mkdir svntest
    C:\>cd svntest
    C:\svntest>svnadmin create testRepos
    C:\svntest>mkdir checkoutDir
    C:\svntest>svn co file:///C:/svntest/testRepos checkoutDir
    Checkade ut revision 0.
    C:\svntest>
    

    要从 sharpsvn 中使用,请使用 file:/// 语法。

    【讨论】:

    • 当 SharpSvn 要求您使用 Uri(或 SvnUriTarget)时,您可以只使用 new Uri("file:///C:/svntest") 或者可能只是使用 new Uri("C:\svntest ") 因为 Uri 类在内部转换了一些变体。
    猜你喜欢
    • 2013-06-06
    • 2015-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-07
    • 2013-02-24
    • 1970-01-01
    相关资源
    最近更新 更多