Managing Files and Changelists

Articles

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...
Changing File Case (Windows) TASK: Change the case of a file on a Perforce Server on Windows SOLUTION: Since Windows uses a case-insensitive file system, references to files that differ only by case are ignored. In order to g...
Checking Out a File from "vi" PROBLEM: How do you 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? Put this in your...
Creating Release Notes TASK: Using Perforce to create release notes SOLUTION: In the follwing examples, assume that you made a label of your previous release called "LABEL_97.02_3549". You also know that the last change...
Determining Changelist of Workspace TASK: Finding what changelist a workspace is synced to SOLUTION: You can use: p4 changes -m1 @clientname to show the highest changelist your client workspace is synced to. Replace clientname wi...
Perforce File Type Options PROBLEM: 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...
Recovering Deleted Files PROBLEM: How do you get deleted files back? SOLUTION: AT THE COMMAND LINE: To restore a file that's been deleted in the depot, sync to the last good revision of the file, add it, and submit it....
Renaming Files PROBLEM: How do you rename a file? SOLUTION: In Perforce you rename a file by integrating the existing file into a new file and deleting the existing one. For example, to rename foo to bar in the...
Submitting Files Non-interactively PROBLEM: How do you submit files from a program or batch script? How do you prevent "submit" from starting up an editor? SOLUTION: RELEASE 2006.2 (OR LATER): You can use the -d option on the subm...
Updating Submitted Changelist Metadata PROBLEM: How do you update the metadata in a changelist after it's been submitted? SOLUTION: If you are a Perforce superuser, or your permissions are set to "admin", then you can modify a submitte...
Using RCS* Keywords TASK: How do you 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...
Using Special Characters TASK: How to you 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 co...

About This Page

Info & Tags

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