~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Martin von Gagern
  • Date: 2011-06-01 12:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6009.
  • Revision ID: martin.vgagern@gmx.net-20110601125356-lwozv2vecea6hxfz
Change from no_decorate to classify as name for the argument.

The command line switch remains as --no-classify, to keep backwards
compatibility.  Users are free to include --no-classify in an alias, and
still use --classify to change back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    version_info_formats,
26
26
    workingtree,
27
27
    )
28
 
from bzrlib.i18n import gettext
29
28
""")
30
29
 
31
30
from bzrlib.commands import Command
42
41
        return version_info_formats.get_builder(format)
43
42
    except KeyError:
44
43
        formats = version_info_formats.get_builder_formats()
45
 
        raise errors.BzrCommandError(gettext('No known version info format {0}.'
46
 
                                     ' Supported types are: {1}').format(
47
 
                                     format, formats))
 
44
        raise errors.BzrCommandError('No known version info format %s.'
 
45
                                     ' Supported types are: %s'
 
46
                                     % (format, formats))
48
47
 
49
48
 
50
49
class cmd_version_info(Command):