Questions tagged [perforce-client-spec]

Perforce client's workspace specification

Perforce client workspace is a set of files on a user's machine that mirror a subset of the files in the depot. The p4 client command is used to create or edit a client workspace specification; invoking this command displays a form in which the user enters the information required by Perforce to maintain the client workspace. Such as:

  1. Root of the client
  2. Mapping of perforce paths to local paths
  3. Various other options (line ending, empty directories handling, etc.)
123 questions
12
votes
5 answers

How to set client root in Perforce P4 when client unknown error comes

Suddenly, when I run p4 info in terminal, I notice that the client root is not set (not sure why it got unset all of a sudden. Following is the output which shows "client unknown" in place of client root. What is the command through which I can set…
Bhavesh Agarwal
  • 603
  • 2
  • 6
  • 13
10
votes
2 answers

Perforce : is there any better way to comment one line in client spec?

i used to -//depot/xxx.. but its not good because i need to write the correct depot path after -//.... is there any better way to comment this ? such as :#//depot/xxx..
Biwier
  • 397
  • 1
  • 6
  • 17
8
votes
5 answers

Can you map a file or directory multiple times in perforce?

I would like to know if I can map a file or directory to multiple local copies with perforce. I know that the P4V does allow me to do that but I encountered very weird behavior from the client and I suspect that this doesn't work. I do not plan to…
sorin
  • 161,544
  • 178
  • 535
  • 806
7
votes
2 answers

Perforce P4CONFIG not being set?

Firstly i'm a total beginer with Perforce, and i'm learning through its documentations mostly. So, we are about to migrate from CVS to Perforce, and i recently learned a good way to avoid changing the P4CLIENT for each workspace, which is creating a…
Bruno Brs
  • 673
  • 1
  • 6
  • 23
6
votes
3 answers

How to set defaults for perforce client specs

I'm trying to discover how to change the default set of Client Spec options and submit-options. set P4CLIENT=my_new_client_1 p4 client Gives me the following spec default-spec: Client: my_new_client_1 ... Options: noallwrite noclobber nocompress…
Greg
  • 2,549
  • 2
  • 24
  • 30
6
votes
1 answer

Perforce "p4 sync" not working properly

Totally confused with the strange behavior of "p4 sync". Tried running the following commands Note: The filename is not present in workspace p4 sync //depot/filename --- shows that files are up-to-date p4 have //depot/filename --- shows files…
r_k
  • 77
  • 1
  • 8
6
votes
3 answers

How to delete Stream Depot in perforce

I use P4Admin to create Stream Depot (named streamDepot) in perforce, then I create a Stream(main) by client, I populated it with client workspace and with a project. But when I try to obliterate the files and delete that streamDepot depot with…
Mustafa Ekici
  • 7,263
  • 9
  • 55
  • 75
6
votes
6 answers

Perforce : Is there any command to check if client spec exist or not

Actually i need write one batch script, in that first i need to check if the required client spec already exist or not? If exist then i should delete it. Could you please let us know how can we check in a script, if the required client spec exist or…
user2369546
  • 67
  • 1
  • 3
  • 7
6
votes
3 answers

Changing workspace clobber option directly from Perforce command line

How to change perforce specs from command line? What I want to do is, I have a workspace whose clobber option is set to noclobber (default value). Now I want to change it to clobber. I know I can do it directly from p4v, but I don't want that. I…
Niyojan
  • 544
  • 1
  • 6
  • 23
4
votes
2 answers

perforce sync no such files

I am trying to setup perforce. I installed p4v and setup workspace. Then I ran C:\"Program Files"\Perforce\p4 -p perforce-test:1500 -u test-user -c test-user_test sync //test-folder/test/ But I get error //test-folder/test/ no such files(s) I can…
user2661518
  • 2,677
  • 9
  • 42
  • 79
4
votes
1 answer

Override host to null in perforce client creation

I am creating a perforce client using p4 client -o -t old_client new_client I want to remove the Host variable from the perforce spec. I tried to override the Host value using p4 -H '' client -o -t old_client new_client but still the perforce…
nik7
  • 3,018
  • 6
  • 25
  • 36
3
votes
1 answer

perforce client spec - making different depot paths map to the same client workspace path

I want to create a client with the following view: //depot/location1/main/... //myclient/main/... //depot/location2/main/... //myclient/main/... No files and directories are common between //depot/location1/main/..., and //depot/location2/main/...…
ghostcoder
  • 473
  • 1
  • 5
  • 17
3
votes
1 answer

Unknown field name 'SubmitOptions' after Perforce upgrade

I just migrated/upgraded from a Windows 2003 Perforce 2009.2 installation to a Windows 2008 R2 2010.2 box and noted that after the upgrade, the only issue that seems to present is the inability to create/edit workspaces from the UI - because it…
rand0m1
  • 389
  • 1
  • 4
  • 13
3
votes
4 answers

Force Perforce to accept workspace view as valid

I have a number of files checked out with changes ready to submit. I realised that my client spec was hardcoding my alternate root, so I removed the alternate root from all lines in the client spec, and specified it in the alternate root box…
Peter Nimmo
  • 1,045
  • 2
  • 12
  • 25
3
votes
1 answer

How to exclude a directory when syncing a p4 stream

I am using the command line tools of Perforce. And with the p4 tool, I want to sync to a stream. The problem is that I want to exclude a directory from my workspace. If my work space was defined as a view, this would be possible with something…
Bram
  • 7,440
  • 3
  • 52
  • 94
1
2 3
8 9