deprecated methods#

changeset_comment#

changeset_comment(apiuser, repoid, revision, message, userid=<Optional:<OptionalAttr:apiuser>>, status=<Optional:None>)#

Deprecated since version 3.4.0: Please use method comment_commit instead.

Set a changeset comment, and optionally change the status of the changeset.

This command can only be run using an Authentication Token with admin permissions on the repository.

Parameters:
  • apiuser (AuthUser) – This is filled automatically from the Authentication Token.

  • repoid (str or int) – Set the repository name or repository ID.

  • revision (str) – Specify the revision for which to set a comment.

  • message (str) – The comment text.

  • userid (Optional(str or int)) – Set the user name of the comment creator.

  • status (str) – Set the comment status. The following are valid options: * not_reviewed * approved * rejected * under_review

Example error output:

{
    "id" : <id_given_in_input>,
    "result" : {
        "msg": "Commented on commit `<revision>` for repository `<repoid>`",
        "status_change": null or <status>,
        "success": true
    },
    "error" : null
}

get_locks#

get_locks(apiuser, userid=<Optional:<OptionalAttr:apiuser>>)#

Deprecated since version 4.0.0: Please use method get_user_locks instead.

None

show_ip#

show_ip(apiuser, userid=<Optional:<OptionalAttr:apiuser>>)#

Deprecated since version 4.0.0: Please use method get_ip instead.

None