Rev 2601: Option help improvements (thanks jamesw) in http://sourcefrog.net/bzr/check-options
Martin Pool
mbp at sourcefrog.net
Wed Jul 11 02:55:35 BST 2007
At http://sourcefrog.net/bzr/check-options
------------------------------------------------------------
revno: 2601
revision-id: mbp at sourcefrog.net-20070711015533-dzcxkjg0ujh8yuhl
parent: mbp at sourcefrog.net-20070710103345-hwfpnzxcx1mfv31x
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: check-options
timestamp: Wed 2007-07-11 11:55:33 +1000
message:
Option help improvements (thanks jamesw)
modified:
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2007-07-10 10:33:45 +0000
+++ b/bzrlib/builtins.py 2007-07-11 01:55:33 +0000
@@ -1581,22 +1581,26 @@
# TODO: Make --revision support uuid: and hash: [future tag:] notation.
takes_args = ['location?']
- takes_options = [Option('forward',
- help='Show from oldest to newest.'),
- 'timezone',
- Option('verbose',
- short_name='v',
- help='Show files changed in each revision.'),
- 'show-ids', 'revision',
- 'log-format',
- Option('message',
- short_name='m',
- help='Show revisions whose message matches this regexp.',
- type=str),
- Option('limit',
- help='Limit the output to the first N revisions.',
- type=_parse_limit),
- ]
+ takes_options = [
+ Option('forward',
+ help='Show from oldest to newest.'),
+ 'timezone',
+ Option('verbose',
+ short_name='v',
+ help='Show files changed in each revision.'),
+ 'show-ids',
+ 'revision',
+ 'log-format',
+ Option('message',
+ short_name='m',
+ help='Show revisions whose message matches this '
+ 'regular expression.',
+ type=str),
+ Option('limit',
+ help='Limit the output to the first N revisions.',
+ argname='N',
+ type=_parse_limit),
+ ]
encoding_type = 'replace'
@display_command
@@ -1721,7 +1725,7 @@
Option('non-recursive',
help='Don\'t recurse into subdirectories.'),
Option('from-root',
- help='Print all paths from the root of the branch.'),
+ help='Print paths relative to the root of the branch.'),
Option('unknown', help='Print unknown files.'),
Option('versioned', help='Print versioned files.'),
Option('ignored', help='Print ignored files.'),
More information about the bazaar-commits
mailing list