Perforce command equivalent to svn export command

I am trying to modify my build script to work with a new project that is based in perforce. The script creates the tag and then wants to check the tag in the temp directory. In subversion, I would use the command svn export. In git, I would git archive | tar -x. Is there an equivalent command in p4? Or do I need to configure the client’s temporary space, synchronize, build, and then delete the client space?

+5
source share
3 answers

creating and synchronizing a client is what i always did. However, I do not know why you need to build a client; just create it, sync it, tar on client files, sync it to C # 0 to clear the clutter, and delete the client. This seems like a simple approach.

+1
source

Theoretically, you can use p4 printto get the contents of a file without using a workspace. However, I think you will find that using the workspace is simpler and more efficient.

+1
source

Sven Erik Knop wrote a script message to the Perforce public department, which uses p4 printing (via P4Python) to create a zip file containing a file tree. You can find it here:

http://public.perforce.com:8080///guest/sven_erik_knop/P4Pythonlib/scripts/PrintZip.py

+1
source

All Articles