~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-07-11 06:41:00 UTC
  • mfrom: (unknown (missing))
  • Revision ID: mbp@sourcefrog.net-20050711064100-c2eb947e0212f487
- patch from john to search for matching commits

Show diffs side-by-side

added added

removed removed

Lines of Context:
887
887
    -r revision requests a specific revision, -r :end or -r begin: are
888
888
    also valid.
889
889
 
 
890
    --message allows you to give a regular expression, which will be evaluated
 
891
    so that only matching entries will be displayed.
 
892
 
890
893
    TODO: Make --revision support uuid: and hash: [future tag:] notation.
891
894
  
892
895
    """
893
896
 
894
897
    takes_args = ['filename?']
895
 
    takes_options = ['forward', 'timezone', 'verbose', 'show-ids', 'revision','long']
 
898
    takes_options = ['forward', 'timezone', 'verbose', 'show-ids', 'revision','long', 'message']
896
899
    
897
900
    def run(self, filename=None, timezone='original',
898
901
            verbose=False,
899
902
            show_ids=False,
900
903
            forward=False,
901
904
            revision=None,
 
905
            message=None,
902
906
            long=False):
903
907
        from bzrlib.branch import find_branch
904
908
        from bzrlib.log import log_formatter, show_log
954
958
                 verbose=verbose,
955
959
                 direction=direction,
956
960
                 start_revision=rev1,
957
 
                 end_revision=rev2)
 
961
                 end_revision=rev2,
 
962
                 search=message)
958
963
 
959
964
 
960
965