Previous Table of Contents Index Next
Perforce 2009.2: Command Reference



p4 rename
Synopsis
Renaming files under Perforce.
Syntax
p4 [g-opts] move fromFile toFile
p4 [g-opts] integrate fromFile toFile
p4 [g-opts] delete fromFile
p4 [g-opts] submit fromFile toFile
Description
Use p4 move to move or rename files.
Prior to release 2009.1, moving files was accomplished by using p4 integrate to copy fromFile into a new toFile, using p4 delete to delete fromFile, and then using p4 submit to store these file changes in the depot.
You can rename multiple files with either method by including matching wildcards in fromFile and toFile.
Usage Notes
Can File Arguments Use
Revision Specifier?
fromFile: Yes
toFile: No
read access for fromFile
write access for toFile
Examples
p4 integrate copies all the files in the d1 directory to the d2 directory.
p4 delete deletes all files in d1.
p4 submit sends these changes to the depot in a single changelist.
Related Commands


Previous Table of Contents Index Next

Perforce 2009.2: Command Reference
Copyright 1999-2009 Perforce Software.