~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

merge test fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
    required feature is present.
83
83
    """
84
84
    lines = text.splitlines(True)
85
 
    firstline = lines.pop(0)
 
85
    try:
 
86
        firstline = lines.pop(0)
 
87
    except IndexError:
 
88
        raise errors.UnknownFormatError(format=text, kind='')
86
89
    for lineno, line in enumerate(lines):
87
90
        try:
88
91
            (necessity, feature) = line.split(" ", 1)