)]}'
{
  "commit": "93bda4dd461358b4fc05dfd8e2d6419cdd574789",
  "tree": "759dc42b2c7a640688204dceb07ba4236da65254",
  "parents": [
    "d44f9ac80c43e34b1522cde8829f0ab371f086ca"
  ],
  "author": {
    "name": "Eric Blake",
    "email": "eblake@redhat.com",
    "time": "Tue Dec 01 22:20:55 2015 -0700"
  },
  "committer": {
    "name": "Markus Armbruster",
    "email": "armbru@redhat.com",
    "time": "Thu Dec 17 08:21:29 2015 +0100"
  },
  "message": "qapi: Track enum values by QAPISchemaMember, not string\n\nRather than using just an array of strings, make enum.values be\nan array of the new QAPISchemaMember type, and add a helper\nmember_names() method to get back at the original list of names.\nLikewise, creating an enum requires wrapping strings, via a new\nQAPISchema._make_enum_members() method.  The benefit of wrapping\nenum members in a QAPISchemaMember Python object is that we now\nshare the existing code for C name clash detection (although the\ncode is not yet active until a later commit removes the earlier\nad hoc parser checks).\n\nIn a related change, the QAPISchemaMember._pretty_owner() method\nneeds to learn about one more implicit type name: the generated\nenum associated with a simple union.\n\nIn the interest of keeping the changes of this patch local to one\nfile, the visitor interface still passes just a list of names\nrather than the full list of QAPISchemaMember instances.  We may\nwant to revisit this in the future, if the consistency with\nvisit_object_type() is worth it.\n\nSigned-off-by: Eric Blake \u003ceblake@redhat.com\u003e\nMessage-Id: \u003c1449033659-25497-12-git-send-email-eblake@redhat.com\u003e\n[Eric\u0027s simplifying followup squashed in]\nSigned-off-by: Markus Armbruster \u003carmbru@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "168463abb77f8f6f0036bcefcbef196412346e0c",
      "old_mode": 33188,
      "old_path": "scripts/qapi.py",
      "new_id": "07e83030e4d249fd801a48f2dca0f9d254f7a7b5",
      "new_mode": 33188,
      "new_path": "scripts/qapi.py"
    }
  ]
}
