/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/option.py

  • Committer: Lukáš Lalinsky
  • Date: 2007-08-25 16:01:41 UTC
  • mto: This revision was merged to the branch mainline in revision 2776.
  • Revision ID: lalinsky@gmail.com-20070825160141-hoeroer1ggao6jv7
 - Make the description of --change more general
 - Raise more specific error for a revision range passed to --change

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
 
99
99
def _parse_change_str(revstr):
 
100
    if '..' in revstr:
 
101
        raise errors.RangeInChangeOption()
100
102
    return (revisionspec.RevisionSpec.from_string('before:' + revstr),
101
103
            revisionspec.RevisionSpec.from_string(revstr))
102
104
 
144
146
 
145
147
        argname -- name of option argument, if any
146
148
 
147
 
        param_name -- name of the parameter, which will be passed to
 
149
        param_name -- name of the parameter which will be passed to
148
150
            the command's run() method.
149
151
        """
150
152
        self.name = name
398
400
_global_option('revision',
399
401
               type=_parse_revision_str,
400
402
               short_name='r',
401
 
               help='See \'help revisionspec\' for details.')
 
403
               help='See "help revisionspec" for details.')
402
404
_global_option('change',
403
405
               type=_parse_change_str,
404
406
               short_name='c',
405
407
               param_name='revision',
406
 
               help='Show changes introduced by the specified revision.')
 
408
               help='Select changes introduced by the specified revision. See also "help revisionspec".')
407
409
_global_option('show-ids',
408
410
               help='Show internal object ids.')
409
411
_global_option('timezone',