Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
p4 help unshelve
unshelve -- Restore shelved files from a pending change into a workspace
p4 unshelve -s changelist# [-f -n] [-c changelist#] [file ...]
'p4 unshelve' retrieves shelved files from the specified pending
changelist, opens them in a pending changelist and copies them
to the invoking user's workspace. Unshelving files from a pending
changelist is restricted by the user's permissions on the files.
A successful unshelve operation places the shelved files on the
user's workspace with the same open action and pending integration
history as if it had originated from that user and client.
Unshelving a file over an already opened file is only permitted
if both shelved file and opened file are opened for 'edit'. After
unshelving, the workspace file is flagged as unresolved, and
'p4 resolve' must be run to resolve the differences between the
shelved file and the workspace file.
The -s flag specifies the number of the pending changelist that
contains the shelved files.
If a file pattern is specified, 'p4 unshelve' unshelves files that
match the pattern.
The -c flag specifies the changelist to which files are unshelved.
By default, 'p4 unshelve' opens shelved files in the default
changelist.
The -f flag forces the clobbering of any writeable but unopened files
that are being unshelved.
The -n flag previews the operation without changing any files or
metadata.
Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public IList<FileSpec> UnshelveFiles( Options options, params FileSpec[] files ) |
Visual Basic |
---|
Public Function UnshelveFiles ( _ options As Options, _ ParamArray files As FileSpec() _ ) As IList(Of FileSpec) |
Visual C++ |
---|
public: IList<FileSpec^>^ UnshelveFiles( Options^ options, ... array<FileSpec^>^ files ) |
Return Value
Remarks
p4 help unshelve
unshelve -- Restore shelved files from a pending change into a workspace
p4 unshelve -s changelist# [-f -n] [-c changelist#] [file ...]
'p4 unshelve' retrieves shelved files from the specified pending
changelist, opens them in a pending changelist and copies them
to the invoking user's workspace. Unshelving files from a pending
changelist is restricted by the user's permissions on the files.
A successful unshelve operation places the shelved files on the
user's workspace with the same open action and pending integration
history as if it had originated from that user and client.
Unshelving a file over an already opened file is only permitted
if both shelved file and opened file are opened for 'edit'. After
unshelving, the workspace file is flagged as unresolved, and
'p4 resolve' must be run to resolve the differences between the
shelved file and the workspace file.
The -s flag specifies the number of the pending changelist that
contains the shelved files.
If a file pattern is specified, 'p4 unshelve' unshelves files that
match the pattern.
The -c flag specifies the changelist to which files are unshelved.
By default, 'p4 unshelve' opens shelved files in the default
changelist.
The -f flag forces the clobbering of any writeable but unopened files
that are being unshelved.
The -n flag previews the operation without changing any files or
metadata.