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. For more information on changelist renumbering see ... |
| 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... |
| Files Deleted Locally Before Submit | PROBLEM: I opened-for-add (Marked for Add) all files in a folder, but some were deleted before I submitted them. I am uncertain which files were deleted. When I try to submit, there are a handful o... |
| 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 ... |
| Multiple Resolves | SUMMARY: Performing multiple integrations on the same file (for example, to integrate one revision or change at a time) requires multiple resolve steps. In contrast, if you integrate all pending re... |
| 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... |
| Reporting on Unchanged Files | TASK: How do I report which files have not been changed since a specific date? SOLUTION: Most of the time, you need to report on the changes made to files between specifc markers, such as dates or... |
| Resolving Binary Files | TASK: How to use p4 resolve -t so Perforce will not attempt a textual resolve, merging the binary files as it does a... |
| Stateless Perforce Client Rollback | TASK: My workspace does not have an updated have list. How can I sync my workspace to a previous revision? SOLUTION: If <CL> is what you have currently ... |
| 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 ... |
| Sync by Date | SUMMARY: When syncing a client workspace by date, the client's modtime option setting and Perforce server's timezone, are factors. DETAIL: $p4 help client ... modtime nomodtime *  ... |
| 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
|
Links |
