<< Back to previous view

[QB-2141] Perforce be able to create stream-client view
Created: 25/Jul/14  Updated: 19/Jan/19

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 5.1.31
Fix Version/s: None

Type: New Feature Priority: Critical
Reporter: Maikel vd Hurk Assigned To: Robin Shen
Resolution: Won't Fix Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: perforce


 Description   
Perforce be able to create stream-client view, currently you are only able to create a view specification, but not able to specify a stream in that as such. It would be good to be able to define a stream and a view spec for that specific stream. See:
p4 help client
View: Maps files in the depot to files in your client
workspace. Defines the files that you want in your
client workspace and specifies where you want them
to reside. The default view maps all depot files
onto the client. See 'p4 help views' for view syntax.
A new view takes effect on the next 'p4 sync'.

Stream: The stream to which this client's view will be dedicated.
(Files in stream paths can be submitted only by dedicated
stream clients.) When this optional field is set, the
View field will be automatically replaced by a stream
view as the client spec is saved.

 Comments   
Comment by Robin Shen [ 26/Jul/14 01:09 AM ]
QB already has this ability: when define "client specification" of a perforce repository, you may select the option "Create client based on specified stream" to use stream oriented client.
Comment by Maikel vd Hurk [ 26/Jul/14 11:34 AM ]
This is not what I mean Robin. I want to specify a stream view and do advanced view specification on this. I can do a client specification of course, but then if you check workspace view with p4 client -o then stream field is empty.
Comment by Robin Shen [ 27/Jul/14 01:08 AM ]
I just checked and QB does able to create stream-based client if that option is used. This is what I am doing:
1. create a perforce repository using option "Create client based on specified stream" and then specify a stream.
2. run the build, and a client has been created automatically for the build, run "p4 client -o <build client>" and the output does indicate that the client is based on specified stream.

Can you please verify it again at your side?
Comment by Maikel vd Hurk [ 27/Jul/14 09:10 AM ]
That is indeed working fine but I want to do:
1) create a perforce client based on a view specification like for example:
//depot/example/... //xxx/...
-//depot/example/notneeded/... //xxx/...
Where example is a perforce stream
2) p4 client -o has then empty stream field but filter view, while I want both stream and view having a value
Comment by Robin Shen [ 28/Jul/14 12:11 AM ]
It seems that as long as a view is attached to a stream, Perforce does not allow you to configure the mapping freely as non-stream client. Instead it gives below message:
To edit the mappings, you must edit the stream's path

So the only thing we can do for a stream based client here is to specify the stream name.
Comment by Maikel vd Hurk [ 29/Jul/14 02:23 PM ]
that would be preferred and the intention of this feature request.
Comment by Robin Shen [ 30/Jul/14 12:05 AM ]
OK I see. You want to be able to configure stream path directly via QB interface. I am not sure if this is doable via QB interface, and will investigate it. Reopened the issue for back log purpose.
Comment by Maikel vd Hurk [ 03/Mar/15 05:19 PM ]
I was trying to configure the a stream path via the QB interface and actually it is still not possible. Any plans to still add this support?
Comment by Robin Shen [ 03/Mar/15 11:33 PM ]
My last investigation does not result in any workable approach doing this by calling Perforce command line, so still do not have a timeline for it yet.
Generated at Sun May 05 00:14:12 UTC 2024 using JIRA 189.