How to find my Subversion server version number?

前端 未结 15 1684
北荒
北荒 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:11

    To find the version of the subversion REPOSITORY you can:

    1. Look to the repository on the web and on the bottom of the page it will say something like:
      "Powered by Subversion version 1.5.2 (r32768)."
    2. From the command line: <insert curl, grep oneliner here>

    If not displayed, view source of the page

    <svn version="1.6.13 (r1002816)" href="http://subversion.tigris.org/"> 
    

    Now for the subversion CLIENT:

    svn --version
    

    will suffice

    0 讨论(0)
  • 2020-11-28 19:12

    Here's the simplest way to get the SVN server version. HTTP works even if your SVN repository requires HTTPS.

    $ 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>
    0 讨论(0)
  • 2020-11-28 19:12

    There really isn't an easy way to find out what version of Subversion your server is running -- except to get onto the server and see for yourself.

    However, this may not be as big a problem as you may think. Subversion clients is were much of the grunt work is handled, and most versions of the Subversion clients can work with almost any version of the server.

    The last release where the server version really made a difference to the client was the change from release 1.4 to release 1.5 when merge tracking was added. Merge tracking had been greatly improved in version 1.6, but that doesn't really affect the interactions between the client and server.

    Let's take the latest changes in Subversion 1.8:

    • svn move is now a first class operation: Subversion finally understands the svn move is not a svn copy and svn delete. However, this is something that the client handles and doesn't really affect the server version.
    • svn merge --reintegrate deprecated: Again, as long as the server is at version 1.5 or greater this isn't an issue.
    • Property Inheritance: This is another 1.8 release update, but this will work with any Subversion server -- although Subversion servers running 1.8 will deliver better performance on inheritable properties.
    • Two new inheritable properties - svn:global-ignores and svn:auto-props: Alas! What we really wanted. A way to setup these two properties without depending upon the Subversion configuration file itself. However, this is a client-only issue, so it again doesn't matter what version of the server you're using.
    • gnu-agent memory caching: Another client-only feature.
    • fsfs performance enhancements and authz in-repository authentication. Nice features, but these work no matter what version of the client you're using.

    Of all the features, only one depends upon the version of the server being 1.5 or greater (and 1.4 has been obsolete for quite a while. The newer features of 1.8 will improve performance of your working copy, but the server being at revision 1.8 isn't necessary. You're much more affected by your client version than your server version.

    I know this isn't the answer you wanted (no official way to see the server version), but fortunately the server version doesn't really affect you that much.

    0 讨论(0)
提交回复
热议问题