Precedence of P4V settings

P4V settings take precedence based on sequence number and property scope. When multiple matching properties exist, the property with the highest sequence number takes precedence.

Precedence rules

Property values are evaluated using the following precedence rules:

  1. Sequence number (higher wins)

  2. User-scoped properties

  3. Group-scoped properties (earlier alphabetically wins)

  4. System-wide properties

For example, if P4V.Features.Integration for user bill has a sequence number of 500 and all other matching properties use the default sequence number of 1, the user-specific property takes precedence because it has the highest sequence number.

Or, for example, suppose user bill is a member of the p4users and dev groups. To find which settings apply, run the following command:

$ p4 property -l -A -n P4V.Features.Integration

The output might be similar to the following, which shows that the P4V.Features.Integration property is set system-wide, but also on a user and group level:

P4V.Features.Integration = Off
P4V.Features.Integration = On (user bill)
P4V.Features.Integration = Off (group p4users)
P4V.Features.Integration = On (group dev)

View the sequence number for a property

An administrator can view the sequence number for a property using the -ztag flag. For example:

Copy
$ p4 -ztag property -l -A -n P4V.Features.Integration
... name P4V.Features.Integration
... sequence 500
... value On
... time 1363106274
... modified 2013/03/12 16:37:54
... modifiedBy swood
... appliesToType user
... appliesTo bill
... name P4V.Features.Integration
... sequence 1
... value Off
... time 1363105851
... modified 2013/03/12 16:30:51
... modifiedBy swood
... name P4V.Features.Integration
... sequence 1
... value On
... time 1363102022
... modified 2013/03/12 15:27:02
... modifiedBy swood
... appliesToType group
... appliesTo dev
... name P4V.Features.Integration
... sequence 1
... value Off
... time 1363102040
... modified 2013/03/12 15:27:20
... modifiedBy swood
... appliesToType group
... appliesTo p4users