p4 reshelve

Synopsis

Copies shelved files from an existing shelf into either a new shelf or one that has already been created. This command does not require a client workspace

Syntax

p4 [g-opts] reshelve -s changelist [file ...]
p4 [g-opts] reshelve [-f] [-p] -s changelist -c changelist [file ...]

Description

The p4 reshelve command copies shelved files from an existing shelf into either a new shelf or one that has already been created. This command leaves the source shelf intact.

If a file pattern is specified, p4 reshelve shelves the files that match the pattern.

Options

-s changelist

Specify the shelved changelist that contains the shelved files to be copied.

-c changelist

Specify the pending changelist that will be the target for the shelved files rather than creating a new one. To update a target shelf you must be the owner of the changelist.

-f

When the same file already exists in the target changelist, force the overwriting of it.

-p

Promote the new or target changelist where it can be accessed by other edge servers participating in the distributed configuration. Once a shelved change has been promoted, all subsequent local modifications to the shelf are also pushed to the commit server and remain until the shelf is deleted.

g-opts

See “Global Options”.

Usage Notes

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

Yes

Yes

open

For more information on promoted shelves see “p4 shelve”.

Related Commands

To restore shelved files into a workspace

p4 unshelve

To shelve files

p4 shelve