~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/patches.py

  • Committer: Aaron Bentley
  • Date: 2006-06-15 03:10:51 UTC
  • mto: This revision was merged to the branch mainline in revision 1771.
  • Revision ID: aaron.bentley@utoronto.ca-20060615031051-94c53f386edc1f8c
Ignore lines that start with '#' in patch parser

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
    for line in iter_lines:
320
320
        if line.startswith('=== ') or line.startswith('*** '):
321
321
            continue
 
322
        if line.startswith('#'):
 
323
            continue
322
324
        elif line.startswith('--- '):
323
325
            if len(saved_lines) > 0:
324
326
                yield saved_lines