Managing Files and Changelists

Articles

Adding .sql files PROBLEM: How do I add .sql files to Perforce? SOLUTION: Let Perforce determine the file type of .sql files. Files with an .sql extension are usually not standard text, but rather type utf16. ...
Backing Out Submitted Changelists TASK: Backing out a changelist that has already been submitted (by overwriting it with previous content). SOLUTION: This article demonstrates three scenarios, starting with the simplest case and e...
Changelist Renumbered on Submit SUMMARY: Changelists are renumbered so that submitted changelist numbers always ascend in chronological order. DETAILS: Pending numbered changelists might be renumbered when they are submitted to...
Changing File Case TASK: Change the case of a file on a Perforce Server SOLUTION: WINDOWS: Because Windows uses a case-insensitive file system, references to files that differ only by case are ignored. In order to...
Checking Out a File from "vi" PROBLEM: How do I check out a file from Perforce when already in vi? SOLUTION: Have you ever opened a file in vi and then realized you need to check it out in order to edit it? Add the following c...
Creating Release Notes TASK: Using Perforce to create release notes SOLUTION: In the following examples, you have already created a label of your previous release called "LABEL_97.02_3549". You also know that the last c...
Depot (Archive) File Timestamps PROBLEM: What is the effect of updating the timestamps of depot files externally? For example, if the depot files are restored from a backup, does it adversely affect Perforce Server operations?...
Determining the Synced Changelist of a Workspace TASK: Finding the changelist to which a workspace is synced. SOLUTION: To show the highest changelist to which your workspace is synced, use the following command: p4 changes -m1 @clientname Re...
Moving Selected Opened Files between Pending Changelists TASK: How do I move a subset of files from one pending changelist to another, based on extension? SOLUTION: Generate a list of files to be moved and utilize the ...
Perforce File Type Options TASK: What Perforce filetypes should I use? SOLUTION: AUTOMATIC FILE TYPE DETECTION: The Perforce Server identifies binary and text files based on whether it detects non-text characters in the fi...
Recovering Deleted Files PROBLEM: How do I get deleted files back? SOLUTION: AT THE COMMAND LINE: To restore a file that was deleted in the depot, ...
Renaming Files PROBLEM: How do I rename a file? SOLUTION: In Perforce you rename a file by integrating the current file into a new file and deleting the current one. For example, to rename "foo" to "bar" in the...
Submitting Files Non-interactively PROBLEM: How do I submit files from a program or batch script? How do I prevent submit from starting up an editor? SOLUTION: RELEASE 2006.2 (OR LATER): You can use the -d option on the ...
Updating Submitted Changelist Metadata PROBLEM: How do I update the metadata in a changelist after it is submitted? SOLUTION: Perforce Administrators Perforce users with super or admin rights can update the following fields of submit...
Using RCS Keywords TASK: How do I use RCS* keywords in Perforce? Which RCS keywords are supported? SOLUTION: Files of Perforce type text+k or text+ko can have RCS-style keyword strings inserted in them. All keyword...
Using Special Characters TASK: How do I work around special characters on the p4 command line? SOLUTION: Perforce uses the characters * and # in file specifications. These characters also have special meaning in many comm...

About This Page

Info & Tags

Article #:
506
Created:
05/18/06
Modified:
01/09/08