Lock File (see also)

Locking a revision prevents other users from making changes to that same revision and checking them in. Unlike a check-out, locking a revision does not retrieve that revision from the QVCS archive, nor will it automatically make the associated work file read/write.

To lock a revision, simply select the file and click the Lock File toolbar button. This brings up a dialog which will by default place a lock on the default revision. For single-file operations, you may elect to lock an older revision by name, and for multi-file operations, you can select them by label.

Lock a Revision Dialog

This is the dialog which appears when you click the Lock File toolbar button.

Lock File Dialog

You can alter the default settings on this dialog using the Lock Dialog tab of the User Preferences dialog.

Each field has the following meanings:

You've elected to lock:

This selection list shows all the revisions in the selected QVCS archive. Select the revision you wish to lock from this list. The "default revision" will be the tip revision of the default branch.

Comment:

Use this field to enter an optional comment. If you enter a comment here, it will become the default check-in comment for this file when you later check the file in.

By Label:

Enable this check box to lock by label instead of by a specific revision. When you enable this check box, QWin will enable and populate the associated combo box. You should then select the appropriate label string from the combo box before clicking the OK button.

Make work file read/write

Enable this check box if you want QWin to change the attribute of the work file to read/write to allow editing of the work file.


Toolbar Operations
GetCheck OutAddCheck InUndo Check-outLockLabelFile GroupsSort RevisionsFilter RevisionsFilter FilesCompare


See also: the corresponding qlock command line utility.