RubyMine 2019.1 Help

Locking and Unlocking Files and Folders

Though Subversion integration allows you to successfully modify and merge files changed by different team members, sometimes it makes sense to lock files (for example, images) to avoid overwriting changes.

Lock a file

  1. Select the file you want to lock in the Project Tool Window or open it in the editor.

  2. Select VCS | Subversion | Lock from the main menu, or Subversion | Lock from the context menu of the selection.

  3. Enter a lock comment in the Lock File dialog that opens.

Unlock a file

  1. Select the file you want to unlock, or open it in the editor.

  2. Select VCS | Subversion | Unlock from the main menu, or Subversion | Unlock from the context menu of the selection.

    To forcibly break a lock set by somebody else, select the Steal Existing Lock checkbox.

Apart from locking files and folders, you can toggle their read-only attribute by using the Read-only / Write-only status bar icons or the File | Make File Read-only, or File | Make File Writable main menu commands. See Toggle read-only attribute of a file for details.

Last modified: 8 May 2019

See Also