[p4] Question about percents in client spec
Sweeney, Tony
sweeney at ea.com
Wed Dec 13 08:24:51 PST 2006
Perforce lets you remap portions of your depot using positional
wildcards %%1 thru %%9 (%1 thru %9 in releases prior to 2004.2). Thus,
if the depot has:
//depot/foo/bar1/baz1/...
//depot/foo/bar2/baz2/...
//depot/foo/bar3/baz3/...
//depot/foo/bar4/baz4/...
//depot/foo/bar5/baz5/...
And you want to map this to:
//mycient/foo/baz1/src/bar1/...
//mycient/foo/baz2/src/bar2/...
//mycient/foo/baz3/src/bar3/...
//mycient/foo/baz4/src/bar4/...
//mycient/foo/baz5/src/bar5/...
Then the mapping:
//depot/foo/%%1/%%2/... //myclient/foo/%%2/src/%%1/...
Will do this for you. The only place this seems to be documented is in
'p4 help views', and some cryptic references in the release notes. It's
not clear to me why it is picking the positional wildcard syntax in
preference to the '*' when you clone your view from the template. Hint
to Perforce: positional wildcards should probably be in the manual.
Tony.
quis custodiet ipsos custodes -- Juvenal VI, 347-8
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Steven W. Orr
> Sent: 13 December 2006 15:29
> To: Perforce Users
> Subject: [p4] Question about percents in client spec
>
> I had a client spec that had this in the view:
>
> //depot/NSG/KG-250.2/main/Software/Code/* //jsmall_build0/*
>
> I copied the spec using
>
> client -t oldspec newspec
>
> and the result came out as
>
> //depot/NSG/KG-250.2/main/Software/Code/%%1 //jsmall_build0/%%1
>
> I was able to change it to an asterick but I don't know what the %%1
> means. Anyone?
>
> TIA
>
> --
> Time flies like the wind. Fruit flies like a banana. Stranger
> things have .0.
> happened but none stranger than this. Does your driver's
> license say Organ ..0
> Donor?Black holes are where God divided by zero. Listen to
> me! We are all- 000
> individuals! What if this weren't a hypothetical question?
> steveo at syslang.net
> _______________________________________________
> 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