Add Resources to Version Control

To share new files and folders (created in your working copy), add them to version control using the Add to version control option from the Working Copy view.

You can easily spot resources not under version control by the (unversioned) icon displayed in the Local file status column. Resources scheduled for addition (added) are displayed with this icon in the Working Copy view and are added in the repository after you commit them.
Note: Do not make a confusion between and icons. The former icon stands for resources that are actually copies of resources already committed in the repository, meaning they are scheduled for addition with history.

When you use the Add to version control option on a directory, its entire structure is scanned and all the resources that can be added under version control are presented.

Though it is not mandatory to add resources under version control explicitly, it is recommended. If you forgot to add a resource, when you commit your changes, the resource is presented in the commit dialog, but not selected. When you commit and unversioned resource, it is automatically added under version control before starting the commit operation.

"Add to version control" dialog box

Note: Ignored () items can also be added under version control.
The Depth column is displayed only when directories are also presented in the dialog. For any directory, you can use one of the available values to instruct Subversion to limit the scope of the operation to a particular tree depth.
Note: The initial value of the Depth field can have the following values, depending on the listing mode of the items in the working copy view:
  • infinity - when the working copy items are presented as a tree;
  • files - when the working copy items are presented compressed;
  • empty - when the working copy items are presented flat.
When you add unversioned or ignored directories, the initial value of the Depth field also depends on the state of the Show unversioned directories content and Show ignored directories content options. In case these options are enabled, the value is based on the listing mode of the items in the working copy view. When they are disabled, the value is empty .
The following options are available in this dialog box:

Each of the above two options is activated only when you select an item for which the option can be applied.