~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to patches.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-23 21:22:16 UTC
  • mto: (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20050923212216-60d6eb8f87aa9bf4
Allowing *** to be a patch header.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
def iter_file_patch(iter_lines):
301
301
    saved_lines = []
302
302
    for line in iter_lines:
303
 
        if line.startswith('=== '):
 
303
        if line.startswith('=== ') or line.startswith('*** '):
304
304
            continue
305
305
        elif line.startswith('--- '):
306
306
            if len(saved_lines) > 0: