Rev 6266: (gz) Remove declaration of unused global options for commands (Martin in file:///srv/

Patch Queue Manager pqm at
Wed Nov 16 17:30:45 UTC 2011

At file:///srv/

revno: 6266 [merge]
revision-id: pqm at
parent: pqm at
parent: martin.packman at
committer: Patch Queue Manager <pqm at>
branch nick: +trunk
timestamp: Wed 2011-11-16 17:30:45 +0000
  (gz) Remove declaration of unused global options for commands (Martin
  doc/en/release-notes/bzr-2.5.txt bzr2.5.txt-20110708125756-587p0hpw7oke4h05-1
=== modified file 'bzrlib/'
--- a/bzrlib/	2011-09-27 13:18:53 +0000
+++ b/bzrlib/	2011-11-14 14:32:15 +0000
@@ -547,69 +547,41 @@
 # Declare commonly used options
-_global_option('basis', type=str)
                help='Select changes introduced by the specified revision. See also "help revisionspec".')
-_global_option('diff-options', type=str)
 _global_option('directory', short_name='d', type=unicode,
                help='Branch to operate on, instead of working directory')
-               help="Show what would be done, but don't actually do anything.")
 _global_option('file', type=unicode, short_name='F')
-_global_option('format', type=unicode)
-_global_option('kind', type=str)
-_global_option('line', help='Use log format with one line per revision.'
-               ' Same as --log-format line')
 _global_registry_option('log-format', "Use specified log format.",
                         lazy_registry=('bzrlib.log', 'log_formatter_registry'),
                         value_switches=True, title='Log format',
                         short_value_switches={'short': 'S'})
-_global_option('long', help='Use detailed log format.'
-               ' Same as --log-format long',
-               short_name='l')
 _global_registry_option('merge-type', 'Select a particular merge algorithm.',
                         _merge_type_registry, value_switches=True,
                         title='Merge algorithm')
 _global_option('message', type=unicode,
                help='Message string.')
-_global_option('name-from-revision', help='The path name in the old tree.')
 _global_option('null', short_name='0',
                  help='Use an ASCII NUL (\\0) separator rather than '
                       'a newline.')
 _global_option('overwrite', help='Ignore differences between branches and '
                'overwrite unconditionally.')
-_global_option('pattern', type=str)
-               help='Show performance profiling information.')
-_global_option('reprocess', help='Reprocess to reduce spurious conflicts.')
 _global_option('remember', help='Remember the specified location as a'
                ' default.')
+_global_option('reprocess', help='Reprocess to reduce spurious conflicts.')
                help='See "help revisionspec" for details.')
-_global_option('short', help='Use moderately short log format.'
-               ' Same as --log-format short')
                help='Show internal object ids.')
                help='Display timezone as local, original, or utc.')
-_global_option('root', type=str)
 diff_writer_registry = _mod_registry.Registry()
 diff_writer_registry.register('plain', lambda x: x, 'Plaintext diff output.')

=== modified file 'doc/en/release-notes/bzr-2.5.txt'
--- a/doc/en/release-notes/bzr-2.5.txt	2011-11-16 14:05:46 +0000
+++ b/doc/en/release-notes/bzr-2.5.txt	2011-11-16 17:04:48 +0000
@@ -55,6 +55,9 @@
 * ``Repository.verify_revision`` has been renamed to
   ``Repository.verify_revision_signature``. (Jelmer Vernooij)
+* Some global options for use with commands have been removed, construct
+  an ``Option`` with the name instead. (Martin Packman)

More information about the bazaar-commits mailing list