How to find my Subversion server version number?

前端 未结 15 1818
北荒
北荒 2020-11-28 18:23

I want to know if my server is running Subversion 1.5.

How can I find that out?

Also would be nice to know my SVN client version number. svn help

15条回答
  •  情歌与酒
    2020-11-28 19:06

    If the Subversion server version is not printed in the HTML listing, it is available in the HTTP RESPONSE header returned by the server. You can get it using this shell command

    wget -S --no-check-certificate \
      --spider 'http://svn.server.net/svn/repository' 2>&1 \
      | sed -n '/SVN/s/.*\(SVN[0-9\/\.]*\).*/\1/p';
    

    If the SVN server requires you provide a user name and password, then add the wget parameters --user and --password to the command like this

    wget -S --no-check-certificate \
      --user='username' --password='password' \
      --spider 'http://svn.server.net/svn/repository' 2>&1 \
      | sed -n '/SVN/s/.*\(SVN[0-9\/\.]*\).*/\1/p';
    

提交回复
热议问题