Comment 0 for bug 420408

Revision history for this message
Vincent Ladeuil (vila) wrote : bzr version URL shoudl displays smart server information

<sabdfl> is it possible to tell the version of a remote bzr server?
<sabdfl> for example, bzr version bzr+ssh://bazaar.launchpad.net/~bzr/bzr/trunk/
<vila> sabdfl: from the command line, I'm pretty sure you can't
<sabdfl> thanks vila - can you file a bug on that please? seems like a reasonable thing to do
<vila> sabdfl: I'll check the existing one first, the subject comes back often, may be on 'bzr info' instead of bzr version though...
<sabdfl> why? it's the version i want
<sabdfl> i don't mind if it's also displayed on info -vv
<vila> bzr version is for the client
<sabdfl> says who
<vila> ?
<vila> you don't specify an url to bzr version
<vila> bzr info <url> gives you info about the url, including ... bug #308472
<ubottu> Launchpad bug 308472 in bzr "bzr info should show the server version" [Medium,In progress] https://launchpad.net/bugs/308472
<vila> sabdfl: here you are, enjoy the patch :-D
<sabdfl> vila
<sabdfl> i would like this information on bzr version if a URL is supplied
<sabdfl> don't tell me that "version does not take a URL"
<sabdfl> i'm asking that you add that ability
<vila> sabdfl: while filing a bug for that, I came across bug #308472, which already implements that on bzr info, I could add your comment there but... I think it makes more sense to accept that patch than to change the meanign of bzr version...
<ubottu> Launchpad bug 308472 in bzr "bzr info should show the server version" [Medium,In progress] https://launchpad.net/bugs/308472
<vila> the rationale for adding it to info rather than version is that:
<vila> version url can gives info only if url is a smart server,
<sabdfl> that's true for info, too
<vila> whereas info will display it additionally when talking to a smart server
<vila> now, it may seem weird to not be able to ask for the server info with 'bzr version <server>' but....
<sabdfl> ok, i hear you, and appreciate the feedback, but the decision is to add an optional <url> to bzr version
<vila> ...but maybe we can fill the other slots that bzr version displays for the server...
<vila> that's more work though, so I'll see that the info patch lands and file a bug for bzr version with that discussion
<vila> sabdfl: what prompted your question at start ? Only the bzr version or also the python version used there, the various paths the revid, etc ?
<sabdfl> i just wanted to know the version of a server i was using
<sabdfl> and that was the command i typed
<sabdfl> then i remembered i did the same thing previously
<sabdfl> i believe others will have done the same
<vila> I agree
<sabdfl> please, file the bug and implement it after 2.0
<vila> So the basic info you wanted is what the info patch provides, adding an url to bzr version is what I file the bug with
<vila> right
<sabdfl> post-2.0 we will focus on user experience, and I'll be part of the review of that, so i'm confident this will pass review