Checking in Changes (Working with Changelists)

To check in changes you have made to the files in a project, you submit the changelist containing the files. Use changelists to structure your changes. For example, use a changelist to group the changes required to fix a bug or add a features. This approach enables you to keep revision history coherent.

To check in changes:

  1. In the Perforce Pending Changelists pane, right-click the changelist that contains the files you want to check in and choose Submit... The Perforce Change Specification dialog is displayed.
  2. Enter a description of your changes. If there are files you do not want to submit, un-check them. Any files you do not submit remain open.
  3. Click Submit. Your changes are submitted. To verify, check the Perforce Console pane for messages like those in the following figure.

To create a changelist, right-click in the Perforce Pending Changelists pane and choose New Changelist...

To move files among changelists, select the files in the Perforce Pending Changelist pane and drag them to the target changelist.

To compare the state of the project in your workspace with the version in the depot, right-click the project in the navigator and choose Team>Check Consistency... P4WSAD displays files you have added to or deleted from the project, enabling you to make sure that you check in the correct project files, as shown in the following figure. Click OK to open files for add or delete as required, or Cancel to dismiss the dialog without opening any files.

 

When you submit a changelist, you might encounter file conflicts that require resolution. Conflicts can occur, for example, if another user checks in changes after you check a file out -- Perforce requires you to decide how the two differing versions of the file are resolved. For more details, see Team Development and Resolving Conflicting Changes.

Changelists submitted by you and other users are listed in the P4 Submitted Changelist pane. You can filter this pane to display only the changelists that contain files in a specified path. To filter the Submitted Changelist pane, enter the path or drag the folder from the P4 Depots pane to the list of submitted changelists. To clear the filter, click


Copyright Perforce Software 2003. All Rights Reserved.