如何找到我的Subversion服务器版本号?

本文翻译自:How to find my Subversion server version number?

I want to know if my server is running Subversion 1.5. 我想知道我的服务器是否正在运行Subversion 1.5。

How can I find that out? 我如何找到答案?

Also would be nice to know my SVN client version number. 也很高兴知道我的SVN客户端版本号。 svn help hasn't been helpful. svn help没有帮助。

Note: I don't want my project's revision number, etc. This question is about the Subversion software itself. 注意:我不需要我的项目的修订号等。此问题与Subversion软件本身有关。


#1楼

参考:https://stackoom.com/question/aiY/如何找到我的Subversion服务器版本号


#2楼

Browse the repository with Firefox and inspect the element with Firebug . 使用Firefox浏览存储库,并使用Firebug检查元素。 Under the NET tab, you can check the Header of the page. 在NET选项卡下,您可以检查页面的页眉。 It will have something like: 它将类似于:

Server: Apache/2.2.14 (Win32) DAV/2 SVN/1.X.X

#3楼

Here's the simplest way to get the SVN server version. 这是获取SVN服务器版本的最简单方法。 HTTP works even if your SVN repository requires HTTPS . 即使您的SVN信息库需要HTTPS, HTTP仍然可以工作。

$ curl -X OPTIONS http://my-svn-domain/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>...</head>
<body>...
<address>Apache/2.2.11 (Debian) DAV/2 SVN/1.5.6 PHP/5.2.9-4 ...</address>
</body>
</html>

#4楼

One more option: If you have Firefox (I am using 14.0.1) and a SVN web interface: 另一种选择:如果您使用Firefox(我使用的是14.0.1)和SVN Web界面:

  • Open Tools->Web Developer->Web Console on a repo page 在回购页面上打开工具-> Web开发人员-> Web控制台
  • Refresh page 刷新页面
  • Click on the GET line 点击GET
  • Look in the Response Headers section at the Server: line 在“ 服务器:”行的“ 响应标题”部分中查找

There should be an "SVN/1.7.4" string or similar there. 那里应该有一个“ SVN / 1.7.4”字符串或类似的字符串。 Again, this will probably only work if you have "ServerTokens Full" as mentioned above. 同样,仅当您如上所述具有“ ServerTokens Full”时,这才可能起作用。


#5楼

For a svn+ssh configuration, use ssh to run svnserve --version on the host machine: 对于svn + ssh配置,请使用ssh在主机上运行svnserve --version:

$ ssh user@host svnserve --version $ ssh user @ host svnserve --version

It is necessary to run the svnserve command on the machine that is actually serving as the server. 必须在实际充当服务器的计算机上运行svnserve命令。


#6楼

命令行上的以下内容应为您提供版本号

   svn --version
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值