Locking and unlocking source files

Locking a source file in the repository prevents other users from making modifications to that file. Source files are automatically locked and unlocked when you check out and check in source files. However, in some cases it may be necessary to manually lock or unlock source files.

Use caution when you manually lock and unlock source files. If several developers are checking sources files into and out of the repository, it’s easy to overwrite or lose the work a developer has done.


Locking source files

If you have made changes to a resource in your dictionary, but don’t have the corresponding source file checked out, you can lock the source file in the repository. This allows you to check in your changes without having to perform a check out operation.

You can use the Resource Explorer to lock one source file at a time. To lock one source file, complete the following procedure.

  1. Select the source file you want to lock.

In the Resource Explorer, select the category of source file you want to lock in the Repository tree. The right side of the Resource Explorer will be filled with a list of source files of the selected type. Select the source file you want to lock.

If you’re locking one of the “base” resources, such as fields or data types, remember that you’re locking all of the resources of that type.


  1. Click the Lock button in the Resource Explorer.

To perform the lock operation, click the Lock button in the Resource Explorer.

[spacer]

You can also lock a source file by selecting its corresponding resource in the Resource Explorer and clicking Lock. Dexterity will automatically lock the appropriate source file for the resource you have selected.


You can also lock multiple source files at one time. To do this, complete the following procedure.

  1. Open the Lock in Repository window.

To open the Lock in Repository window, point to Source Control in the Explorer menu and choose Lock.

  1. Select the source files to lock.

In the Repository Source Files list, select the source files you want to lock and click Insert.

  1. Lock the source files.

Click Lock to begin locking source files in the repository. A dialog box will be displayed, indicating progress as source files are locked. When all source files are locked, click Close to close the Lock in Repository window.

Unlocking source files

If you have checked out a source file, but don’t want to check it back into the repository, you can unlock the source file.

You can use the Resource Explorer to unlock one source file at a time. To unlock one source file, complete the following procedure.

  1. Select the source file you want to lock.

In the Resource Explorer, select the category of source file you want to unlock in the Repository tree. The right side of the Resource Explorer will be filled with a list of source files of the selected type. Select the source file you want to unlock.

If you’re unlocking one of the “base” resources, such as fields or data types, remember that you’re unlocking all of the resources of that type.


  1. Click the Unlock button in the Resource Explorer.

To perform the unlock operation, click the Unlock button in the Resource Explorer.

[spacer]

You can also unlock a source file by selecting its corresponding resource in the Resource Explorer and clicking Unlock. Dexterity will automatically unlock the appropriate source file for the resource you have selected.


You can also unlock multiple source files at one time. To do this, complete the following procedure.

  1. Open the Unlock in Repository window.

To open the Unlock in Repository window, point to Source Control in the Explorer menu and choose Unlock.

  1. Select the source files to unlock.

In the Checked Out Source Files list, select the source files you want to unlock and click Insert.

  1. Unlock the source files.

Click Unlock to begin unlocking source files in the repository. A dialog box will be displayed, indicating progress as source files are unlocked. When all source files are unlocked, click Close to close the Unlock in Repository window.


Documentation Feedback