[p4] Variable substitution in client specs?
Roy Smith
smith_roy at emc.com
Fri Oct 5 11:00:18 PDT 2007
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
More information about the perforce-user
mailing list