def set_revision_limit(self, limit):
        """
        Sets the limit of historical revisions to store for any single document
        in the current remote database.

        :param int limit: Number of revisions to store for any single document
            in the current remote database.

        :returns: Revision limit set operation status in JSON format
        """
        url = '/'.join((self.database_url, '_revs_limit'))

        resp = self.r_session.put(url, data=json.dumps(limit, cls=self.client.encoder))
        resp.raise_for_status()

        return response_to_json_dict(resp)
Sets the limit of historical revisions to store for any single document
        in the current remote database.

        :param int limit: Number of revisions to store for any single document
            in the current remote database.

        :returns: Revision limit set operation status in JSON format