Questions tagged [perforce]
Perforce is a commercial, proprietary, centralized revision control system.
3,169
questions
-1
votes
1
answer
15
views
P4V - remove identic files but with different history from changelist
I shelved files from another branch and unshelved them in the current branch. The problem is that now I have around 1500 files in the changelist and I want to remove the files that are identical ...
0
votes
0
answers
12
views
Git P4 not syncing all changes
I am attempting to migrate a perforce repo to git using git p4, but I am seeing some files not properly syncing with the repo.
git p4 clone //mr_s/sourceRepo@all --destination=destRepo
but when I ...
0
votes
0
answers
14
views
How to post review with non-binary and binary file?
When I create Review request with non-binary and binary files using rbt post command, I got the review request generated. But, when I checked the list of files in diffs, I don't see the binary files.
...
0
votes
1
answer
32
views
P4Python cannot use progress class
I don’t know why this will raise AttributeError, but in document it seems right https://www.perforce.com/manuals/p4python/Content/P4Python/python.p4_progress.html
from P4 import P4, P4Exception, ...
0
votes
0
answers
11
views
How to fix P4 "Submitting to multiple branches from one changelist is not allowed"
my p4 server declined my submission and output error message. "Submitting to multiple branches from one changelist is not allowed"
Here is my example remote-client mapping of the to-be-...
0
votes
1
answer
46
views
Git equivalent of multiple Perforce work areas
I've used Perforce for about 10 years, and now having to switch to Git for a new job.
Say I have a recent test regression. The way I would go about debugging it in P4 is create two work areas: one ...
0
votes
0
answers
46
views
Perforce Depot - Cannot delete depot
I cannot delete my stream Depot even though I've deleted all the streams of it. I tried the solution listed here: https://portal.perforce.com/s/article/2546 but it didn't work. Please help.
PS C:\...
2
votes
1
answer
19
views
How to get the list of 60Days old users in Perforce
I need to return records where there is an access date older than 60 days along with Perforce UserName, Email & Last Accessed Date in Perforce. I am aware of the perforce command to get the all ...
0
votes
1
answer
15
views
p4 changes with specific path doesn't show any output
We are using Perforce and I need to list down all CL numbers from a specific depot path.
I have created my specific folder like as following //sw/test/Myname/project.
My understanding to get all the ...
0
votes
1
answer
57
views
Use p4 shelve in perl script without opening the editor
I'm trying to shelve my changes via perl script. After running p4 shelve it opens up an editor where I need to enter the description, save and exit.
The problem I'm facing here is this script will be ...
0
votes
1
answer
20
views
Recovering an old Perforce depot
I recently lost a lot of files, due to a hard disk error, but still have a Perforce folder containing files from a particular project. Trouble is, it's not the actual project files, but some kind of ...
-1
votes
1
answer
25
views
How to run p4 console command if I use p4v client
I installed Client p4v from oficial site. I can use only Gui. But I can not use p4 console application. How can I run p4 from console?
0
votes
1
answer
40
views
How to get the list of perforce depots that have no changelist?
Is it possible to get the list of depots (name of the depot) that have no changelist created along with their creation date.
0
votes
0
answers
20
views
How to automate the changing of P4 client specs on a Jenkins build process for multiple build jobs? [duplicate]
Context:
One machine that uses Jenkins as a DOS-Jenkins service (not a Windows service).
Source-Code Management is handled using a Perforce plugin.
There is another job on the same machine that uses ...
0
votes
0
answers
17
views
Setting p4ignore on mac without CLI?
I've looked through Perforce p4ignore with P4v and am trying to determine whether you can set p4ignore on HelixCore visual client on Mac without CLI? I am having issues getting the p4 CLI to run and ...
0
votes
0
answers
21
views
Unity and P4V Error - file(s) not in client view? [duplicate]
I've looked through several other SO posts pertaining to this and have tried the solutions mapped out here Perforce P4W error: file(s) not in client view . I am trying to use P4V with my Unity project ...
0
votes
0
answers
80
views
Perforce SSL connection doesn't work with domain name but fine with IP address
I set up my SSL Perforce server with the official script on my Linux cloud vps. It's been fine but since I switched to 2022.1 P4V, I can't connect to it anymore. It says:
SSL connect to ssl:perforce....
0
votes
1
answer
26
views
How can I get the list of changes that user W made between date X and date Y which affected directory Z?
I think the command is p4 changes, but I can't figure out the syntax for what I want.
I tried with
p4 changes -u myusername @2021/09/08,2022/04/04 /path/to/directory
where the date interval and the ...
0
votes
0
answers
18
views
P4Python - getting affected files given changelist number
so far I have been using p4.run("files", "@=" + ) to find the affected files per CL. However, I'm having the issue that for certain CLs the output shows 'no files found'. When I ...
0
votes
0
answers
30
views
Perforce Trigger, Format on Commit (change-content trigger)
I'm trying to implement a Perforce change-content trigger that will use clang-format to see if files have been properly formatted that are submitted to the Perforce Depot and will send them to a new ...
0
votes
0
answers
24
views
Way to atomically remove from depot file that is already opened for edit in Perforce
Right now I am working on Perforce API integration and there is a question I have not found a correct (from my point of view) answer for. If I have opened a file for edit in a changelist how to mark ...
0
votes
1
answer
91
views
Perforce: How to create a new stream at a specific changelist
I have a streamed depot with a mainline and development branches. We're currently at CL #10.
I want to create a new branch something like //project/side_branch but populated with files from CL #5. ...
0
votes
1
answer
29
views
Can I avoid files being marked as delete in target folder when running p4 copy command?
I am running p4 copy command on folder
ex: p4 copy c:\source c:\target
When I do that, files in source folder are correctly copied into the target folder but existing files in target folder are being ...
0
votes
1
answer
21
views
how to handle files/directories with '@' in perforce
I have some folders with '@' in it.
I can't seem to make it work
>cd fmsn_adc_vs_cdc_clock_reset_integrity@fmsn_adc_vs
>p4 rec -n ...
//depot/icm/proj/...
0
votes
0
answers
45
views
How to calculate number of lines of code which every programmer added or removed in perforce version control
I want get statistic about how many every developer added and removed lines of code in perforce version control system in all changelist in all time. The result must be like:
user
added
removed
...
1
vote
0
answers
46
views
Why is rider perforce updating working more slowly than Visual Studio perforce updating?
I am working with P4V. And my Visual Studio perforce extension works faster than perforce integration in Rider.
Why? and how to improve Rider perforce integration?
Also, in Rider, I see a lot of ...
0
votes
1
answer
33
views
Error while git p4 cloning the branches with --detect-branches
When I trying to detect branches from Perforce I am getting the below mentioned error.
git p4 clone --detect-branches //depot/path/abc_987/migration/@all
The error I am receiving is
...
0
votes
1
answer
32
views
P4 Triggers - edit changelist description after submit on client
If I submit the changelist in P4V, I'd like to change the description of the changelist through the P4 trigger.
like this,
https://www.perforce.com/manuals/p4sag/Content/P4SAG/scripting.triggers.push....
0
votes
0
answers
31
views
Error in running Powershell script for the git
Below I have the powershell script that will migrate P4 branches to Git. Below is the script:
(& git branch -r).Split([Environment]::Newline) |
%{ $_.Trim() } |
Where-Object { $_ -notlike "/...
0
votes
0
answers
15
views
simple_swiych_grpc make failed [duplicate]
i tried to set up p4-onos-dev environment
i download all needed and compiled successfully but when i tried to build behavioral-model ,simple_swich_grpc related errors occur
this is the error message
/...
0
votes
0
answers
33
views
Migrate Perforce Branches to Git Branches
In perforce I have different folders with their branches. I want to migrate same branches to git. For example, in ABC folders, there are further branches like Apple, Ball and Cat. I want Apple Ball ...
0
votes
1
answer
150
views
How to use withCredentials for Perforce in Jenkins?
I am attempting to retrieve the credentials for Perforce in my Jenkinsfile. The p4 credentials are saved using the standard Jenkins credentials store. I need the credentials to be in scope so that I ...
0
votes
1
answer
118
views
How to revert p4 unshelved effect
I did shelved file from my local desktop with changeset ex. 244444
Now I ran below command to unshelve the files on my another server:
p4 unshelve -s 244444
This Pending changeset contains 3 files. ...
0
votes
1
answer
29
views
Perforce stream - can you exclude a directory but include specific files in that directory?
I have a Perforce stream where I am excluding certain binary folders, as in
exclude Binaries/Win64/...
But there are a couple of files in that directory that I do want in the stream. Is there a way to ...
0
votes
2
answers
472
views
Out of date files must be resolved or reverted. But I have no unresolved files
So I resolved all files. No shown/known conflicts reported but I still can't submit.
Also looks like its trying to do a 223 revision but I see no 222 revision in history only 221.
What do I need to do ...
0
votes
0
answers
16
views
Trying to Migrate P4V data to git using P4Python [duplicate]
Here I am trying to migrate my perforce data. The code is below:
from P4 import P4, P4Exception
p4 = P4()
p4.port = "localhost:1666"
p4.user = "xyz"
p4.client = "xyz"
p4....
0
votes
0
answers
154
views
Unable to connect to server <hostname:port> as user <username> in Perforce when downloading code
I have been pulling my hair for the past few weeks. I'm able to login and create a workspace in stream. When code is downloading, after some time it says reconnect or disconnect workspace.
The dialog ...
0
votes
1
answer
31
views
Can I track workspace changes in Perforce?
Our Jenkins job downloads some code from a Perforce server, using a pre-defined workspace. It
sometimes fails with the following error message:
Client 'xxxx' can only be used from host 'yyyy'.
When ...
0
votes
1
answer
84
views
How to open files in different ChangeList(s) into default change list?
Let's say I have few files under CL: 123 and few files under CL:456 . How do I open all the files together in one changelist or into a default changelist so that I can submit them together ?
0
votes
1
answer
59
views
Dockerfile: Bash Script executing flawlessly with ENTRYPOINT, but not with RUN
Project
I am building a docker-compose file for a simple devops stack. One of the tools is Helix Core by Perforce. I am trying to build an Ubuntu Dockerfile, that will install Helix Core and then run ...
0
votes
1
answer
152
views
Rider for Unreal - perforce integration with files that are not in project subdirectories
I used Rider for Unreal for quite some time now, I got used to it so much that at the other company I work I wanted to use it as well, the only problem is that I cannot make the perforce plugin work ...
0
votes
1
answer
67
views
How can I share a workspace definition between multiple hosts?
I have created a Perforce workspace definition with which I will be able to "run the latest demo" on a PC.
Then I wanted to try and check out the same workspace on another PC in order to run ...
0
votes
1
answer
37
views
How do Perforce streams handle subpaths with different access than parent path?
For configuration of streams in Perforce, there exist five access types (according to documentation, in order more-to-less-inclusive): share, isolate, import/import+, exclude. They are placed in the ...
0
votes
1
answer
30
views
Are nested workspace mappings possible with Perforce?
Can I have a workspace mapping where some depots or parts of depots get mapped as subdirectories of another depot mapping, like in this example workspace definition:
//Depot_Base/... //...
0
votes
1
answer
34
views
What method do you use a lot when controlling p4 command with Python? [closed]
What method do you use a lot when controlling p4 command with Python?
Use p4 module
Control p4 command using subprocess ("p4 change")
I'm currently creating tool the second method
0
votes
1
answer
55
views
how to set up p4 view to avoid file(s) not on client issue
I try to run p4 on windows' powershell, and here is my problem.
p4 client
...
Host: my_machine
Root: C:\mywork\
...
View: //gmag/a/b/c/... //my_machine/gmag/a/b/c/...
...
Now I want to edit a file ...
0
votes
1
answer
77
views
How can i get a description of changelist from perforce?
I'm testing perforce command from cmd.
I want to get only description of changelist. So I'm looking for the solution from perforce document (https://www.perforce.com/manuals/cmdref/Content/CmdRef/Home-...
0
votes
1
answer
25
views
Looking to get P4PORT from p4api.net
It seems the call is Connection.GetP4EnvironmentVar( "P4PORT" ), but to be able to interrogate a connection I need to connect to a server and hence need a P4PORT in advance, and so have a ...
0
votes
1
answer
71
views
Powershell script pauses after running Perforce Application with cmd until the termination of Perforce Applicaiton
I am creating a script that will run Perforce and allow the user to login. However, after logging in, the user must manually close Perforce in order for the Powershell script to continue running. I ...
0
votes
1
answer
257
views
In Perforce (P4V), I am trying to delete a workspace but getting an error that says the File System P4ROOT doesnt have enough space
the exact error message says The filesystem 'P4ROOT' has only 1.9G free, but the server configuration requires at least 2G available.
I am trying to delete a new workspace i made by accident but keep ...