Jump to content


Configure "view" for "p4 client" command

command line p4 client client view

  • Please log in to reply
1 reply to this topic

#1 aron

aron

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 19 January 2017 - 12:05 PM

Hi,
I'm new in Perforce and using it in my testing environment.
I have misunderstand with creating new workspace from the command "p4 client".
Assume this specification (the complete file is attached):

Client: my_client

Owner: padmin

Host: CM-Cx

Description:
Created by padmin.

Root: c:\Users\Administrator

Options: noallwrite noclobber nocompress unlocked nomodtime normdir

SubmitOptions: submitunchanged

LineEnd: local

After
"p4 client -i < form.txt"
> Client my_client saved.

Now set P4CLIENT env var
"p4 set -s P4CLIENT=my_client"
>
What I can't understand is that when typing command "p4 client -o" there isn't "view" section in the client spec as here:
----------------------------------------------------------------------------------------
# A Perforce Client Specification.

# ...... ........
#........ ......
# Use 'p4 help client' to see more about client views and options.

Client: my_client

Update: 2017/01/19 12:58:22

Access: 2017/01/19 12:58:22

Owner:  padmin

Host:   CM-cx

Description:
Created by padmin.

Root:   c:\Users\Administrator

Options: noallwrite noclobber nocompress unlocked nomodtime normdir

SubmitOptions:  submitunchanged

LineEnd: local
-------------------------------------------------------------------------------------
But when typing the command "p4 client -o jhon" then i'm getting the spec file with "view" section as below:

# A Perforce Client Specification.
# ...... ........
#........ ......
# Use 'p4 help client' to see more about client views and options.

Client: jhon

Owner: aron

Host: CM-cx

Description:
Created by aron.

Root: c:\Program Files\Perforce

Options: noallwrite noclobber nocompress unlocked nomodtime normdir

SubmitOptions: submitunchanged

LineEnd: local

View:
//ProxyVote-VSM/... //jhon/ProxyVote-VSM/...
//Depot_1/... //jhon/Depot_1/...
//depot/... //jhon/depot/...
//802.1X/... //jhon/802.1X/...

So what the reason of the difference between the commands? How do I control this section - means if I'd like to configure that every client will be created by default without view section, how do I'll do it?
  Thanks,
Aron

Attached Files

  • Attached File  form.txt   2.29K   226 downloads


#2 UnstoppableDrew

UnstoppableDrew

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 08 February 2017 - 03:14 PM

By default, Perforce creates new clients with a view that maps everything you have access to. When you do a 'p4 client -o' of a non-existent client like 'jhon' above, it creates the spec with all the default values, including the View: field.





Also tagged with one or more of these keywords: command line, p4 client, client view

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users