Skip to content

P4OO.Branch#

P4OOBranch dataclass #

Bases: _P4OOSpecObj

Perforce Branch Spec Object

id Required: Yes

Forcible: Yes

Attributes:

Name Type Description
branch str

Name of the branch

owner P4OOUser

User that created the branch spec

description str

Description field

options str

[unlocked|locked]

view str

View spec mappings

update datetime

Time of last update to the spec

access datetime

Time of last access of the spec

See Also

Perforce Helix Core Command Reference: https://www.perforce.com/manuals/cmdref/Content/CmdRef/p4_branch.html

P4OOBranchSet dataclass #

Bases: _P4OOSet

P4OOSet of P4OOBranch objects

query(user=None, maxresults=None, namefilter=None, **kwargs) #

Executes p4 branches query

Parameters:

Name Type Description Default
user P4OOUser | str

The user that created the branch

None
maxresults int

Return only the first results

None
namefilter str

Case-sensitive filter on branch name

None

Returns:

Type Description
P4OOBranchSet

P4OOSet of P4OOBranch objects matching query parameters

See Also

Perforce Helix Core Command Reference: https://www.perforce.com/manuals/cmdref/Content/CmdRef/p4_branches.html