~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

(gz) Remove declaration of unused global options for commands (Martin
 Packman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
547
547
                 custom_callback=_verbosity_level_callback)
548
548
 
549
549
# Declare commonly used options
550
 
_global_option('all')
551
 
_global_option('basis', type=str)
552
 
_global_option('bound')
553
550
_global_option('change',
554
551
               type=_parse_change_str,
555
552
               short_name='c',
556
553
               param_name='revision',
557
554
               help='Select changes introduced by the specified revision. See also "help revisionspec".')
558
 
_global_option('diff-options', type=str)
559
555
_global_option('directory', short_name='d', type=unicode,
560
556
               help='Branch to operate on, instead of working directory')
561
 
_global_option('dry-run',
562
 
               help="Show what would be done, but don't actually do anything.")
563
 
_global_option('email')
564
557
_global_option('file', type=unicode, short_name='F')
565
 
_global_option('force')
566
 
_global_option('format', type=unicode)
567
 
_global_option('forward')
568
 
_global_option('kind', type=str)
569
 
_global_option('line', help='Use log format with one line per revision.'
570
 
               ' Same as --log-format line')
571
558
_global_registry_option('log-format', "Use specified log format.",
572
559
                        lazy_registry=('bzrlib.log', 'log_formatter_registry'),
573
560
                        value_switches=True, title='Log format',
574
561
                        short_value_switches={'short': 'S'})
575
 
_global_option('long', help='Use detailed log format.'
576
 
               ' Same as --log-format long',
577
 
               short_name='l')
578
562
_global_registry_option('merge-type', 'Select a particular merge algorithm.',
579
563
                        _merge_type_registry, value_switches=True,
580
564
                        title='Merge algorithm')
581
565
_global_option('message', type=unicode,
582
566
               short_name='m',
583
567
               help='Message string.')
584
 
_global_option('name-from-revision', help='The path name in the old tree.')
585
 
_global_option('no-backup')
586
 
_global_option('no-recurse')
587
568
_global_option('null', short_name='0',
588
569
                 help='Use an ASCII NUL (\\0) separator rather than '
589
570
                      'a newline.')
590
571
_global_option('overwrite', help='Ignore differences between branches and '
591
572
               'overwrite unconditionally.')
592
 
_global_option('pattern', type=str)
593
 
_global_option('profile',
594
 
               help='Show performance profiling information.')
595
 
_global_option('reprocess', help='Reprocess to reduce spurious conflicts.')
596
573
_global_option('remember', help='Remember the specified location as a'
597
574
               ' default.')
 
575
_global_option('reprocess', help='Reprocess to reduce spurious conflicts.')
598
576
_global_option('revision',
599
577
               type=_parse_revision_str,
600
578
               short_name='r',
601
579
               help='See "help revisionspec" for details.')
602
 
_global_option('short', help='Use moderately short log format.'
603
 
               ' Same as --log-format short')
604
580
_global_option('show-ids',
605
581
               help='Show internal object ids.')
606
582
_global_option('timezone',
607
583
               type=str,
608
584
               help='Display timezone as local, original, or utc.')
609
 
_global_option('root', type=str)
610
 
_global_option('unbound')
611
 
_global_option('update')
612
 
_global_option('version')
613
585
 
614
586
diff_writer_registry = _mod_registry.Registry()
615
587
diff_writer_registry.register('plain', lambda x: x, 'Plaintext diff output.')