def METHOD_NAME(ui, repo, hooktype, node=None):
  abort = True
  if node != None:
    if len(port) > 0:
      abort = fire_hook(ui, repo, hooktype, node)
    else:
      ui.warn(b"ERROR: scm-manager hooks are disabled, please check your configuration and the scm-manager log for details\n")
  else:
    ui.warn(b"changeset node is not available")
  return abort