~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Lukáš Lalinsky
  • Date: 2007-08-23 19:41:35 UTC
  • mto: This revision was merged to the branch mainline in revision 2776.
  • Revision ID: lalinsky@gmail.com-20070823194135-sd784wf9vhbuplv2
New option -C/--change for diff and status to show changes in one revision. (#56299)

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
    return revs
97
97
 
98
98
 
 
99
def _parse_change_str(revstr):
 
100
    return (revisionspec.RevisionSpec.from_string('before:' + revstr),
 
101
            revisionspec.RevisionSpec.from_string(revstr))
 
102
 
 
103
 
99
104
def _parse_merge_type(typestring):
100
105
    return get_merge_type(typestring)
101
106
 
387
392
               type=_parse_revision_str,
388
393
               short_name='r',
389
394
               help='See \'help revisionspec\' for details.')
 
395
_global_option('change',
 
396
               type=_parse_change_str,
 
397
               short_name='C',
 
398
               help='Show changes introduced by the specified revision.')
390
399
_global_option('show-ids',
391
400
               help='Show internal object ids.')
392
401
_global_option('timezone',