def get_file(self, repository, path, revision, base_commit_id, *args,
                 **kwargs):
        url = self._get_file_url(repository, revision, base_commit_id, path)

        try:
            data, is_new = self._api_get(url)
            return data
        except (HTTPError, URLError) as e:
            if e.code == 404:
                raise FileNotFoundError(path, revision)
            else:
                logging.warning('Failed to get file from %s: %s',
                                url, e, exc_info=1)
                raise SCMError(six.text_type(e))
Get a file from ReviewBoardGateway.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/rbgateway.py/ReviewBoardGateway.get_file