'version' command is misleading and should be removed

Bug #41046 reported by mlh
4
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

The version command gives version information
about bzr, rather than the version of the code it
is managing. Version info about bzr is already
given by --version.

Background: I'll be migrating from bzr from bazaar1
I was looking for something like bazaar1's tree-version
command.

The version command should be removed; alternatively
it could give the same or similar info as 'testament'
or the command provided by John Meinel's version-info
plugin.

This was discussed on the mailing list a while ago
and support in principal by Martin at least.
https://lists.ubuntu.com/archives/bazaar-ng/2006q1/008902.html

Also see John Meinel's 'version-info' plugin at
http://bzr.arbash-meinel.com/plugins/version_info/

Tags: trivial
Revision history for this message
mlh (mlh) wrote : patch to remove version command (cmd_version)

Pretty trivial. I checked that nothing depended
on this cmd_.

Revision history for this message
John A Meinel (jameinel) wrote :

Can we have some comments on this.
I'm okay with removing 'bzr version' and just having 'bzr --version'.

Revision history for this message
Alexander Belchenko (bialix) wrote :

I think it's common practice to use short option as '-v' or '-V' with '--version'.
I think with this addition we can remove 'version' command (or mark it as deprecated).

Revision history for this message
Wouter van Heyst (larstiq) wrote :

Having just --version is fine with me.

Revision history for this message
John A Meinel (jameinel) wrote :

I think we should deprecated "bzr version" first, which should be trivial, and then we can remove it later.

I also think adding -V would be reasonable. I've seen people expect it (it is what python -V uses).

Changed in bzr:
importance: Medium → Wishlist
status: Unconfirmed → Confirmed
description: updated
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

I'm ok with dropping version: less is more in this case. While both git and hg have a version command, svn doesn't, i.e. some users will expect it but many won't.

Revision history for this message
Neil Martinsen-Burrell (nmb) wrote :

We already use the -V option as a shortcut for --versioned in `bzr status`. From a consistency standpoint, I think that re-using it to be a shortcut for --version is a bad idea.

Also, removing the version command loses the functionality provided by bzr version --short which doesn't seem to appear anywhere else. I think we should avoid the regression and keep the (minimal) amount of code for cmd_version as it is.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.