def get_revision_dict(self): """ Get dictionary of all revisions with a list of buildnumbers (int) that used that particular revision """ revs = defaultdict(list) if 'builds' not in self._data: raise NoBuildData( repr(self)) for buildnumber in self.get_build_ids(): revs[self.get_build(buildnumber).get_revision()].append(buildnumber) return revs
def get_build_dict(self): if not self._data.has_key("builds"): raise NoBuildData(repr(self)) return dict((a["number"], a["url"]) for a in self._data["builds"])