简体   繁体   English

如何在Windows中升级git svn使用的SVN版本?

[英]How can I upgrade the SVN version used by git svn in Windows?

My company is in the process of upgrading SVN to 1.7. 我的公司正在将SVN升级到1.7。 Checking git svn --version shows that the SVN version being used is 1.4.6. 检查git svn --version表明正在使用的SVN版本是1.4.6。 I'd like to get the version of SVN that git svn uses up closer to 1.7. 我想获得git svn用于接近1.7的SVN版本。 However, I've seen no instructions for updating the version of SVN that git svn uses (in Windows). 但是,我没有看到更新git svn使用的SVN版本的指令(在Windows中)。

The other thread I found looking for answers seems to be oriented to a Mac OSX user. 我发现寻找答案的另一个主题似乎是面向Mac OSX用户。 I haven't seen Windows instructions for this upgrade, however. 但是,我还没有看到Windows升级的说明。 Does anyone know how to properly update the SVN version for git svn in Windows? 有谁知道如何在Windows中正确更新git svn的SVN版本?

I'm assuming you're using mSysGit on Windows, since I'm using a recent install and git svn --version is also listing v1.4.6 for me. 我假设你在Windows上使用mSysGit,因为我正在使用最近的安装和git svn --version也为我列出了v1.4.6。

The reason you've seen no instructions is that you're using the latest version of mSysGit. 您没有看到任何说明的原因是您使用的是最新版本的mSysGit。 You can't upgrade if there's nothing to upgrade to! 如果没有要升级的话,你无法升级! You've a few options: 你有几个选择:

  • Don't bother. 不要打扰。 Everything will just work as it always has, since a Subversion 1.7 server will happily work with an older client. 一切都将像往常一样工作,因为Subversion 1.7服务器将很乐意与旧客户端一起工作。 Continuing to use your version of git svn will cause no more issues than it does at present, if it causes any at all. 继续使用你的git svn版本将导致没有比现在更多的问题,如果它导致任何问题。

  • Use Cygwin . 使用Cygwin The Subversion version that git svn on Cygwin uses is 1.7.4. Cygwin上git svn使用的Subversion版本是1.7.4。

  • Wait for a new version to come out. 等待新版本问世。 Given mSysGit is still at Subversion 1.4.6, I wouldn't hold much hope for this happening any time soon. 鉴于mSysGit仍处于Subversion 1.4.6,我不会对此很快发生这种情况。

Starting with git1.7.8 (October 2012), git svn will officially work with SVN1.7 从git1.7.8开始(2012年10月), git svn将正式使用SVN1.7

See " [ANNOUNCE] Git v1.8.0-rc3 ": 参见“ [ANNOUNCE] Git v1.8.0-rc3 ”:

" git svn " has been updated to work with SVN 1.7. git svn ”已更新,可与SVN 1.7配合使用。

I noticed that the version of git that I installed from GitHub ( http://windows.github.com/ ) had svn 1.7 but mSysGit 1.8.1.2 still had svn 1.4. 我注意到我从GitHub( http://windows.github.com/ )安装的git版本有svn 1.7但mSysGit 1.8.1.2仍然有svn 1.4。

On further inspection I noticed that GitHub for Windows doesn't ship with svn! 在进一步检查时,我注意到Windows的GitHub没有附带svn! It turns out that it was picking up my command line version of svn that I had installed in Windows separately. 事实证明它正在拿起我在Windows中单独安装的命令行版本的svn。

Deleting all the svn* files from the mSysGit/bin directory had the same effect. 从mSysGit / bin目录中删除所有svn *文件具有相同的效果。 It will pick up whatever version of svn you have installed in Windows (assuming that it is on the PATH). 它将获取您在Windows中安装的任何版本的svn(假设它在PATH上)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM