Adding files to the depot

To add a file to the depot, you must perform two actions:

  1. Open the file for add, which places the file in a changelist.
  2. Submit the changelist, which copies the file to the depot.

To open a file for add:

  1. In the Solution Explorer, browse to the file you want to add.

    If a file does not reside in the depot, its icon is marked with a blue question mark.

  2. Right-click the file and select Mark for Add.

    A P4VS dialog opens asking you to add the files to the Helix Server depot.

  3. Select the pending changelist you want to use for submitting the file.
  4. Click OK.

    The file icon in Solution Explorer displays a red plus sign indicating that it is open for add.

To submit the changelist:

  1. In the Solution Explorer, right-click the file and select Submit.
  2. In the Submit Files dialog, enter a description of the change and click Submit.

    The new file is added to the depot.

Note

If you add a file to a solution that is already under Helix Server control, you are prompted to put the new file under Helix Server control. If you enabled the Automatically add new files to Helix Core option and disabled the Prompt for changelist when checking out or adding files option under Tools > Options > Source Control, the file is marked for add and placed in a changelist without any prompting. For more information about these options, see Setting P4VS preferences.

For more information, see Checking in files and working with changelists.