All pastes #23910 Raw Edit

Untitled

public python v1 · immutable
#23910 ·published 2005-09-26 03:18 UTC
rendered paste body
    def async_get_revision_xml_file(self, revision_id):        """Return XML file object for revision object.        try:            return self.revision_store.get(revision_id)        except (IndexError, KeyError):            raise NoSuchRevision        """        if not revision_id or not isinstance(revision_id, basestring):            raise InvalidRevisionId(revision_id)        def failed_get(error):            error.trap(IndexError, KeyError)            raise bzrlib.errors.NoSuchRevision(self, revision_id)        script = self.revision_store.get(revision_id)        script.addErrback(failed_get)        return script