p4 rename
Synopsis
Renaming files under Perforce.
Syntax
p4 [g-opts] rename
[-c change]
[-f] [-k] [-n]
[-t filetype]
fromFile
toFile
Description
The command p4 rename is an alias for p4 move.
You can rename multiple files by including matching wildcards in
fromFile and toFile.
Usage Notes
|
Can File Arguments Use Revision Specifier? |
Can File Arguments Use Revision Range? |
Minimal Access Level Required |
|---|---|---|
|
|
No |
|
-
Files must be open for edit before they can be moved.
-
Prior to release 2009.1, moving files was accomplished by using p4 integrate to copy
fromFileinto a newtoFile, using p4 delete to deletefromFile, and then using p4 submit to store these file changes in the depot.
Examples
|
p4 edit //depot/d1/... p4 move //depot/d1/... //depot/d2/... |
Moving files from |
|
p4 integ //depot/d1/... //depot/d2/... p4 delete //depot/d1/... p4 submit |
Moving a set of files prior to 2009.1:
|