[p4] Using current directory as client root?
Jeff A. Bowles
jab at pobox.com
Wed Jan 16 19:55:54 PST 2008
For database efficiency reasons, this has a possibility of machine-gunning
the server and being terribly inefficient. On a small database, it might
not matter (except that the OS might think it is under a "deprivation of
services from across the net" attack and shut down incoming connections from
your script) but against an enterprise-size server, look out.
I'd make a temp-client (and delete it afterwards), which hits the database
for far fewer connections / operations.
-Jeff Bowles
On Jan 16, 2008 4:23 PM, <alex.pavloff at l-3com.com> wrote:
>
> "p4 print -o", wrapped in a script that generates the file list via "p4
> files" or any other method you like.
>
> -Alex
>
>
>
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Roy Smith
> Sent: Wednesday, January 16, 2008 11:58 AM
> To: Perforce User
> Subject: [p4] Using current directory as client root?
>
> I have a requirement (as part of our build system) to be able to get
> a set of files from the repository and have them written to any
> arbitrary directory. Because the root path is embedded in the client
> spec, there doesn't seem to be any way to do this.
>
> We've played with all sorts of hacks. We can create a symlink from
> the root path embedded in the client to where we really want the
> files. We can create and destroy temporary client specs on the fly.
> But all these seem like hacks. Surely there must be some simple way
> to say, "just put the files HERE".
>
> We don't need the workspace to be managed by perforce. We'll never
> want to edit the files there, or submit any changes from there. We
> just want a read-only copy of the source tree so we can build it.
>
> -------------------
> Roy Smith <smith_roy at emc.com>
> Software Guy, EMC Common Management Group
> 44 South Broadway, 7th floor
> White Plains, NY 10601
> (914) 580-3427
> AIM: roysmith649
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
---
Jeff Bowles - jeff.a.bowles at gmail.com
More information about the perforce-user
mailing list