/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/merge_directive.py

  • Committer: Marius Kruger
  • Date: 2007-03-31 20:49:06 UTC
  • mfrom: (2384 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2455.
  • Revision ID: amanic@gmail.com-20070331204906-iai2v10wk3l3lt12
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
            if line.startswith('# ' + klass._format_string):
94
94
                break
95
95
        else:
96
 
            raise errors.NotAMergeDirective(lines[0])
 
96
            if len(lines) > 0:
 
97
                raise errors.NotAMergeDirective(lines[0])
 
98
            else:
 
99
                raise errors.NotAMergeDirective('')
97
100
        stanza = rio.read_patch_stanza(line_iter)
98
101
        patch_lines = list(line_iter)
99
102
        if len(patch_lines) == 0: