~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/patches.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-15 03:37:38 UTC
  • mfrom: (1770.1.1 bzr.ab2)
  • Revision ID: pqm@pqm.ubuntu.com-20060615033738-b8eca7ad18b0dd9c
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