Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Download file from perforce depot without a client workspace?

Tags:

perforce

Is there a way to download a file from a perforce depot without using a client workspace? I know about:

p4 print -o local.file //perforce_depot/remote.file

but this does only work if the requested file is under the clients workspace. I'm looking for something that is only dependent on the user and his rights but not on a workspace...

Thanks!

like image 549
Martin Schulze Avatar asked Jan 09 '12 23:01

Martin Schulze


People also ask

What is Perforce client workspace?

Description. A Perforce client workspace is a set of files on a user's machine that mirror a subset of the files in the depot. More precisely, it is a named mapping of depot files to workspace files.

What does clean do in Perforce?

The p4 clean command takes the following actions when finding inconsistencies between files in a user's workspace and corresponding depot files: Files present in the workspace, but missing from the depot are deleted from the workspace.

What does get revision do in Perforce?

In the Get Revision dialog, specify the desired revision and click Get Revision. To get the revisions or the previous revisions for files in a changelist, open the Submitted tab. This tab displays a list of submitted changelists, based on the filter criteria selected at the top of the tab.


1 Answers

Run p4web on your perforce server, and then you can use wget to get any file.

I have my build servers wget their initial kickoff build scripts, that avoids the chicken/egg problem of you need something to kick a build, but you want that something to be in perforce. The only thing not in perforce now is a 2 lines. A wget, and an exec.

like image 147
aflat Avatar answered Sep 28 '22 03:09

aflat