

def update_revision(self, revisionid, raw_diff, message):
    "Update an existing Differential revision with a new diff.\n\n        :revisionid: id of the Differential revision to update\n        :raw_diff: raw output string from e.g. 'git diff master...'\n        :message: string message to annotate the update event with\n        :returns: None\n\n        "
    revision = self._data.get_revision(revisionid)
    assert raw_diff
    assert self
    if revision.is_closed():
        raise abdt_exception.AbdUserException("can't update a closed revision")
    if (not revision.is_accepted()):
        revision.set_in_review()
    self._data.set_changed()

dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_conduitmock.py ConduitMock.update_revision/VarMisuse@33/154 `message`->`self`