~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to grep.py

  • Committer: Parth Malwankar
  • Date: 2010-06-26 02:34:08 UTC
  • mto: (0.40.142 grep)
  • mto: This revision was merged to the branch mainline in revision 6555.
  • Revision ID: parth.malwankar@gmail.com-20100626023408-htdd6g86ghmlxw83
added inital test for 'grep -p'

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
        if opts.revision:
219
219
            start_rev = opts.revision[0]
220
220
        else:
221
 
            opts.revision = [RevisionSpec.from_string('last:1')]
 
221
            # if no revision is sepcified for diff grep we grep all changesets.
 
222
            opts.revision = [RevisionSpec.from_string('revno:1'),
 
223
                RevisionSpec.from_string('last:1')]
222
224
            start_rev = opts.revision[0]
223
225
        start_revid = start_rev.as_revision_id(branch)
224
226
        if start_revid == 'null:':