unreal.SourceControlState¶
- class unreal.SourceControlState(filename: str = '', is_valid: bool = False, is_unknown: bool = False, can_check_in: bool = False, can_check_out: bool = False, is_checked_out: bool = False, is_current: bool = False, is_source_controlled: bool = False, is_added: bool = False, is_deleted: bool = False, is_ignored: bool = False, can_edit: bool = False, can_delete: bool = False, is_modified: bool = False, can_add: bool = False, is_conflicted: bool = False, can_revert: bool = False, is_checked_out_other: bool = False, checked_out_other: str = '', is_checked_out_in_other_branch: bool = False, is_modified_in_other_branch: bool = False, previous_user: str = '')¶
Bases:
StructBaseSnapshot of source control state of a file see: USourceControlHelpers::QueryFileState()
C++ Source:
Module: SourceControl
File: SourceControlHelpers.h
Editor Properties: (see get_editor_property/set_editor_property)
can_add(bool): [Read-Only] Determine if this file can be added to source control (i.e. is part of the directory structure currently under source control)can_check_in(bool): [Read-Only] Determine if this file can be checked in.can_check_out(bool): [Read-Only] Determine if this file can be checked outcan_delete(bool): [Read-Only] Determine if source control allows this file to be deleted.can_edit(bool): [Read-Only] Determine if source control allows this file to be editedcan_revert(bool): [Read-Only] Determine if this file can be reverted, i.e. discard changes and the file will no longer be checked-out.checked_out_other(str): [Read-Only] Get name of other user who this file already checked out or “” if no other user has it checked outfilename(str): [Read-Only] Get the local filename that this state representsis_added(bool): [Read-Only] Determine if this file is marked for add note: if already checked in then not considered mid addis_checked_out(bool): [Read-Only] Determine if this file is checked outis_checked_out_in_other_branch(bool): [Read-Only] Determine if this file is checked out by someone else in another branchis_checked_out_other(bool): [Read-Only] Determine if this file is checked out by someone elseis_conflicted(bool): [Read-Only] Determine if this file is in a conflicted stateis_current(bool): [Read-Only] Determine if this file is up-to-date with the version in source controlis_deleted(bool): [Read-Only] Determine if this file is marked for deleteis_ignored(bool): [Read-Only] Determine if this file is ignored by source controlis_modified(bool): [Read-Only] Determine if this file is modified compared to the version in source control.is_modified_in_other_branch(bool): [Read-Only] Determine if this file is modified by someone in another branchis_source_controlled(bool): [Read-Only] Determine if this file is under source controlis_unknown(bool): [Read-Only] Determine if we know anything about the source control state of this fileis_valid(bool): [Read-Only] Indicates whether this source control state has valid information (true) or not (false)previous_user(str): [Read-Only] The username of the previous user to modify this file
- property can_add: bool¶
[Read-Only] Determine if this file can be added to source control (i.e. is part of the directory structure currently under source control)
- Type:
(bool)
- property can_delete: bool¶
[Read-Only] Determine if source control allows this file to be deleted.
- Type:
(bool)
- property can_edit: bool¶
[Read-Only] Determine if source control allows this file to be edited
- Type:
(bool)
- property can_revert: bool¶
[Read-Only] Determine if this file can be reverted, i.e. discard changes and the file will no longer be checked-out.
- Type:
(bool)
- property checked_out_other: str¶
[Read-Only] Get name of other user who this file already checked out or “” if no other user has it checked out
- Type:
(str)
- property is_added: bool¶
[Read-Only] Determine if this file is marked for add note: if already checked in then not considered mid add
- Type:
(bool)
- property is_checked_out_in_other_branch: bool¶
[Read-Only] Determine if this file is checked out by someone else in another branch
- Type:
(bool)
- property is_checked_out_other: bool¶
[Read-Only] Determine if this file is checked out by someone else
- Type:
(bool)
- property is_conflicted: bool¶
[Read-Only] Determine if this file is in a conflicted state
- Type:
(bool)
- property is_current: bool¶
[Read-Only] Determine if this file is up-to-date with the version in source control
- Type:
(bool)
- property is_ignored: bool¶
[Read-Only] Determine if this file is ignored by source control
- Type:
(bool)
- property is_modified: bool¶
[Read-Only] Determine if this file is modified compared to the version in source control.
- Type:
(bool)
- property is_modified_in_other_branch: bool¶
[Read-Only] Determine if this file is modified by someone in another branch
- Type:
(bool)
- property is_source_controlled: bool¶
[Read-Only] Determine if this file is under source control
- Type:
(bool)
- property is_unknown: bool¶
[Read-Only] Determine if we know anything about the source control state of this file
- Type:
(bool)