def key_value_to_tree(data):
    tree = {}
    for flatkey, value in six.iteritems(data):
        t = tree
        keys = flatkey.split(__opts__['pepa_delimiter'])
        for key in keys:
            if key == keys[-1]:
                t[key] = value
            else:
                t = t.setdefault(key, {})
    return tree
Updates the data from a server-side changeset.
dataset/ETHPy150Open saltstack/salt/salt/pillar/pepa.py/key_value_to_tree--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/models/base_review_request_details.py/BaseReviewRequestDetails.update_from_commit_id