p4 reopen

Move opened files between changelists or change the files' type.

Syntax

p4 [g-opts] reopen [-c changelist] [-t filetype] file ...

Description

p4 reopen has two different but related uses:

If file patterns are provided, all open files matching the patterns are moved or retyped. The two options can be combined to move a file and change its type in the same operation.

Options

-c changelist

Move all open files matching file pattern file to pending changelist changelist. To move a file to the default changelist, use default as the changelist number.

-t filetype

When submitted, store file as type filetype. All subsequent revisions will be of that file type until the type is changed again.

See File Types for a list of file types.

g-opts

See Global Options.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

No

No

open

Examples

p4 reopen -t text+k //...

Reopen all open files as text files with keyword expansion.

p4 reopen -c 410 //depot/proj1/... //.../README

Move all open files under directory //depot/proj1 or that are named README to pending changelist 410.

p4 reopen -c default -t binary+S //....exe

Move all open .exe files to the default changelist, overwriting older revisions of those files in the depot.