p4 zip

Synopsis

Package a set of files and their history for use by p4 unzip.

Syntax

p4 zip -o file [-r remote -A -I] [filespec | -c change]

Description

Takes the specified set of files, and the changelists which submitted those files, and writes them to the specified zip file.

Options

-A

Include the archive content of the new revisions.

-c change

Zips up just the files covered by the specified changelist.

-I

Excludes integration records for the new revisions.

-o filename

Specifies the zip file name.

-r remotespec

Specifies the remote spec to be used to re-map the files when they are written to the zip file.

filespec

Specifies the filepath of the files to zip up.

Usage Notes

Can File Arguments Use Revision Specifier?

Can File Arguments Use Revision Range?

Minimal Access Level Required

Yes

Yes

superuser

Examples

p4 zip -o foo //...

Creates a zip file named foo with all changes and revisions.

Related Commands

Import files from a p4 zip package file

p4 unzip