def ChangeToStr(change):
  """Turn a pinpoint change dict into a string id."""
  change_id = ','.join(
      '{repository}@{git_hash}'.format(**commit)
      for commit in change['commits'])
  if 'patch' in change:
    change_id += '+' + change['patch']['url']
  return change_id