[p4] Variable substitution in client specs?

Dave Lewis dlewis78731 at gmail.com
Fri Oct 5 14:04:55 PDT 2007


As an alternative, we used template clients extensively.  For each
code project or branch, there is a client template for it.  Users just
create their clients using the template, which is trivial.

When branches are created, the p4branch script took as input the
source client templates, and created new branch client templates.

dave


On 10/5/07, Bennett, Patrick <Patrick.Bennett at inin.com> wrote:
> Why on earth would you need to create a new clientspec for every new
> branch?
> Most of our users only have one client spec.
> Different branches map to different areas off their client root.  It's
> all quite simple really.
>
>
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Roy Smith
> Sent: Friday, October 05, 2007 2:00 PM
> To: Perforce User
> Subject: [p4] Variable substitution in client specs?
>
> I've been using p4 for about a year.  When we first started using it,
> the biggest stumbling block was the drudgery of creating client
> specs.  Now that I've been using it for a year, I still find creating
> clientspecs is a pain.  There's so much duplicated information.  Each
> time you create a branch, you need to create a new clientspec, which
> means taking an old one and doing a lot of editing.  Here's a simple
> example:
>
> Client: dmt-dev-smithr3-7.2
>
> Root:   /emc/smithr3/src/dmt-dev-smithr3-7.2
>
> View:
>          //depot/smarts/dmt/dev/smithr3/7.2/... //dmt-dev-smithr3-7.2/
> smarts/...
>
>
> The string "dmt-dev-smithr3-7.2" appears three times (and this is a
> trivial view; in a more typical view, it would appear many times).
> It would be so nice if I could do something like:
>
>
> Client: dmt-dev-smithr3-7.2
>
> Root:   /emc/smithr3/src/$client
>
> View:
>          //depot/smarts/$branch/... //$client/smarts/...
>
> then whenever I needed to create a new branch, and a clientspec to go
> with it, I could just copy my template, change two lines, and be
> done.  Is there any way to do something like this?
>
> -------------------
> 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
>


More information about the perforce-user mailing list