def TryChange(change_info, args, swallow_exception=False, patchset=None):
  """Create a diff file of change_info and send it to the try server."""
  try:
    import trychange
  except __HOLE__:
    if swallow_exception:
      return
    ErrorExit("You need to install trychange.py to use the try server.")

  if change_info:
    trychange.TryChange(args, change_info.name, change_info.FileList(),
                        swallow_exception, patchset)
  else:
    trychange.TryChange(args)
dataset/ETHPy150Open CollabQ/CollabQ/bin/gcl.py/TryChange