/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 breezy/revision.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-17 01:04:53 UTC
  • mto: This revision was merged to the branch mainline in revision 7187.
  • Revision ID: jelmer@jelmer.uk-20181117010453-04oem8uwx2ni3j5v
Move decoding of bug properties.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        """Iterate over the bugs associated with this revision."""
148
148
        bug_property = self.properties.get('bugs', None)
149
149
        if bug_property is None:
150
 
            return
151
 
        for line in bug_property.splitlines():
152
 
            try:
153
 
                url, status = line.split(None, 2)
154
 
            except ValueError:
155
 
                raise bugtracker.InvalidLineInBugsProperty(line)
156
 
            if status not in bugtracker.ALLOWED_BUG_STATUSES:
157
 
                raise bugtracker.InvalidBugStatus(status)
158
 
            yield url, status
 
150
            return iter([])
 
151
        return bugtracker.decode_bug_urls(bug_property)
159
152
 
160
153
 
161
154
def iter_ancestors(revision_id, revision_source, only_present=False):