/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2007-07-10 10:33:45 UTC
  • mto: This revision was merged to the branch mainline in revision 2599.
  • Revision ID: mbp@sourcefrog.net-20070710103345-hwfpnzxcx1mfv31x
Also check that option help ends in a period, and fix those that don't

Show diffs side-by-side

added added

removed removed

Lines of Context:
1715
1715
    _see_also = ['status', 'cat']
1716
1716
    takes_args = ['path?']
1717
1717
    # TODO: Take a revision or remote path and list that tree instead.
1718
 
    takes_options = ['verbose', 'revision',
1719
 
                     Option('non-recursive',
1720
 
                            help='Don\'t recurse into subdirectories.'),
1721
 
                     Option('from-root',
1722
 
                            help='Print all paths from the root of the branch.'),
1723
 
                     Option('unknown', help='Print unknown files'),
1724
 
                     Option('versioned', help='Print versioned files'),
1725
 
                     Option('ignored', help='Print ignored files'),
1726
 
                     Option('null',
1727
 
                            help='Write an ascii NUL (\\0) separator '
1728
 
                            'between files rather than a newline.'),
1729
 
                     'kind',
1730
 
                     'show-ids',
1731
 
                    ]
 
1718
    takes_options = [
 
1719
            'verbose',
 
1720
            'revision',
 
1721
            Option('non-recursive',
 
1722
                   help='Don\'t recurse into subdirectories.'),
 
1723
            Option('from-root',
 
1724
                   help='Print all paths from the root of the branch.'),
 
1725
            Option('unknown', help='Print unknown files.'),
 
1726
            Option('versioned', help='Print versioned files.'),
 
1727
            Option('ignored', help='Print ignored files.'),
 
1728
            Option('null',
 
1729
                   help='Write an ascii NUL (\\0) separator '
 
1730
                   'between files rather than a newline.'),
 
1731
            'kind',
 
1732
            'show-ids',
 
1733
            ]
1732
1734
    @display_command
1733
1735
    def run(self, revision=None, verbose=False, 
1734
1736
            non_recursive=False, from_root=False,
3515
3517
    takes_options = [
3516
3518
        RegistryOption.from_kwargs('patch-type',
3517
3519
            'The type of patch to include in the directive',
3518
 
            title='Patch type', value_switches=True, enum_switch=False,
3519
 
            bundle='Bazaar revision bundle (default)',
3520
 
            diff='Normal unified diff',
3521
 
            plain='No patch, just directive'),
3522
 
        Option('sign', help='GPG-sign the directive'), 'revision',
 
3520
            title='Patch type',
 
3521
            value_switches=True,
 
3522
            enum_switch=False,
 
3523
            bundle='Bazaar revision bundle (default).',
 
3524
            diff='Normal unified diff.',
 
3525
            plain='No patch, just directive.'),
 
3526
        Option('sign', help='GPG-sign the directive.'), 'revision',
3523
3527
        Option('mail-to', type=str,
3524
 
            help='Instead of printing the directive, email to this address'),
 
3528
            help='Instead of printing the directive, email to this address.'),
3525
3529
        Option('message', type=str, short_name='m',
3526
 
            help='Message to use when committing this merge')
 
3530
            help='Message to use when committing this merge.')
3527
3531
        ]
3528
3532
 
3529
3533
    encoding_type = 'exact'
3606
3610
            type=unicode,
3607
3611
            ),
3608
3612
        Option('force',
3609
 
            help='Replace existing tags',
 
3613
            help='Replace existing tags.',
3610
3614
            ),
3611
3615
        'revision',
3612
3616
        ]
3649
3653
    _see_also = ['tag']
3650
3654
    takes_options = [
3651
3655
        Option('directory',
3652
 
            help='Branch whose tags should be displayed',
 
3656
            help='Branch whose tags should be displayed.',
3653
3657
            short_name='d',
3654
3658
            type=unicode,
3655
3659
            ),