# Checking in files

When you mark files for add or delete, check them out, integrate them, or schedule them for resolve, the files are added to changelists. Perforce changelists are lists of actions performed on files. The actions in the changelist are performed when you submit the changelist. Pending changelists are changelists that have yet to be submitted. Changelists are assigned unique numbers by the Perforce server. In addition, a default changelist is maintained for each client workspace. If submission of the default changelist fails, the server assigns it a number.

To check in individual files: assuming the files are checked out or marked for add or delete, option-click the files in the depot or worksapce pane and choose Submit... P4V displays the Submit dialog. Enter a description, select files and attach jobs as desired, then click Submit. If you are not ready to submit, click Cancel.

To display changelists, choose View>Pending changelists or View>Submitted changelists. P4V displays a list view of changelists in the right pane, with details for selected changelists at the bottom.

To filter the displayed changelists, use the filter drop-down box above the either of the changelist panes.

- You can limit the view to all changelists that affect a particular file by dragging the file from the Tree pane to the filter drop-down box above either changelist pane.
- To view only Pending Changelists in your workspace, select Workspace Changelists from the drop-down list.
- You can filter the Submitted Changelists list by User and Workspace by clicking Browse

To submit a changelist, double-click it. P4V displays the Submit dialog. Enter a description, select files and attach jobs as desired, then click Submit. If you are not ready to submit, click Cancel.

To move a file from one pending changelist to another, expand the source changelist and drag the file to the target changelist.

To back out a submitted changelist:

You cannot undo a successful changelist submission, but you can integrate a previous file version to become the new head revision as follows.

1. Choose Get revision... and retrieve the desired previous revision into your workspace.
2. Check the revision out for edit. P4V displays a yellow triangle on the file icon to indicate that it is a previous revision.
3. Choose Get latest revision. P4V schedules the file for resolve, and displays a red question mark on the file icon.
4. Right-click the file and choose Resolve. P4V displays the Resolve dialog.
5. Choose Accept Yours.
6. Submit the changelist containing the file.

Your selected revision is now the head revision in the depot.

To minimize the time it takes P4V to handle very large changelists, limit the number of files displayed in a changelist by doing the following:

1. Choose Tools>Preferences.
2. Click the Connection tab.
3. In the Maximum number of files displayed per changelist field, enter how many files to display in a changelist.

You can still submit changelists with more than the specified number of files, but the file lists are displayed as follows:

- Pending and Submitted tabs display "There are ### files in this changelist."
- Details tab displays the list of files in a simple text box (with no P4V file badges).