Lock rules

Locking (exclusive checkout) is useful for handling files that cannot be merged (3D assets, images, audio). You can configure lock rules so that UVCS knows which files to lock on checkout.

To access Lock rules, go to the Unity Cloud Dashboard, select DevOps > Settings > Lock Rules.

There are two types of lock rules:

Organization lock rule

This lock rule applies to all repositories that don’t have repository-specific rules. You can only create one rule per organization.

To set up an organization lock rule:

  1. Under Organization lock rule, select Configure.
  2. Select the Branches to apply the lock rule to.
  3. Enter the file extensions manually or select Generate common rules to populate with file extensions.
  4. Select Save.

Repository lock rules

These lock rules are specific to a repository and overwrite the organization lock rules. You can create as many repository-specific rules per organization.

To set up a repository-specific lock rule:

  1. From the Lock rules tab on the Settings page, go to the Repository lock rules section, and select Configure.
  2. Select the repository that the rule should apply to.
  3. Enter the Lock destinations (branches).
  4. Enter the file extensions manually or select Generate common rules to populate with file extensions.
  5. Select Save.

Exclude branches

When configuring lock rules, you can also define branches that are not affected by them.

Branch exclusion rules give you more control over how you set up automations, prototype branches or any configuration that fits with your workflow.

Delete lock rules

To delete a lock rule:

  1. From the Lock rules tab on the organizations page, select the lock rule you want to delete.
  2. Select Delete lock rule.