[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Command to get the "repository" version

From: David Huang <khym_at_azeotrope.org>
Date: Mon, 15 Feb 2010 15:41:23 -0600

On Feb 15, 2010, at 3:03 PM, Phil Pinkerton wrote:

> A client says Subversion is broken his merge isn't working and the
> engineer suspects the working directory was checked out under svn 1.4.2
> so he is not seeing what he expects as if he was using svn 1.6.5 which
> does not have the same merge attributes. So I need to determine which
> revision of subversion his repository was created with.

I think we're having terminology problems... in the context of Subversion, "revision" and "version" are different. Also, "working copy" and "repository" are very different. I'm still not sure what you want to find out, but it sounds like you want to know the version number of Subversion that the client's working copy was created with? I.e., you're looking for a number like "1.4.2" or "1.5.5" or "1.6.5"? "Revision" numbers are simple whole numbers (e.g., 15 or 5210 or 26532), and it sounds like you're not interested in getting any "revision" numbers.

When you say "So I need to determine which revision of subversion his repository was created with", who does "his" refer to when you say "his repository"? There should only be one repository, and it's on the server. If you want to know the version number of the Subversion server, whoever installed it should know, or be able to find out. I don't think there's a sure-fire way to find out remotely, but if it's accessible over HTTP or HTTPS, you might be able to find out simply by browsing to the repository URL using a web browser. E.g., if you go to http://svn.apache.org/repos/asf/subversion/trunk/ in a web browser, you'll see "Powered by Subversion version 1.6.6 (r40053)." at the bottom of the page.

If you are trying to find out which version of Subversion the client's working copy was created with, I don't know the answer to that. The various clients will tell you their version number, which isn't necessarily the same as the version number that created the working copy (e.g., if you recently installed a new version, but haven't actually done anything to the working copy yet). However, it seems fairly likely that this method will work--just ask the person whose merge isn't working to get the version number of the Subversion client he tried to do the merge with. If he uses the svn commandline client, have him run "svn --version". If he uses TortoiseSVN, right-click in Explorer somewhere and select TortoiseSVN -> About. If he uses some other Subversion client, there should be some way to get its version number.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2447895

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-02-15 22:41:29 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.