Questions tagged [p4api]
6 questions
2
votes
1 answer
C# P4Api use -zversion and -zprog for custom logging
I am building an app with C# using the P4Api, but I need to use the parameters -zprog and -zversion so the server logs show from what app the commands are coming as this post explains: https://community.perforce.com/s/article/11551
string logParams…

MaDowen
- 115
- 1
- 1
- 9
1
vote
1 answer
Specify global options for a Perforce command run using p4api
I am using the Perforce, a.k.a. Helix Core, C++ API to programmatically run a Perforce command. How do I specify a global option for the command?
For example, I want to programmatically run the clients command with several global options. If run…

Mike Finch
- 746
- 1
- 7
- 20
0
votes
0 answers
Is there a way to check if a file is tracked in p4api with C# using just the file path?
I am using the p4api and want to check weather a File is tracked or not. Thing is I only have the full path and not the depot path.
FileSpec fs = new FileSpec(new DepotPath(filePath), VersionSpec.Head);
IList lfs = new…
0
votes
1 answer
p4 tickets: output says I need to upgrade?
I'm using p4api 2018.1. Issuing a p4 tickets from the Run method, the output message from stdout says: "Must upgrade to 2004.2 p4 to access tickets."
This doesn't sound like an upgrade to me.
I tried it with this code.
int errNo;
ClientUser…

marcthenarc
- 23
- 5
0
votes
1 answer
How can I perform a Perforce UNDO operation using p4Api in c#
If I was calling this from the command line, I would call (for example):
p4 undo //depot/myfile.txt#2
How can I accomplish the same thing using the perforce API? There appears to be no api for UNDO.

Ian Gipson
- 3
- 2
0
votes
1 answer
Can p4api.net connect to a (local) p4 personal server?
Can p4api.net connect to a (local) p4 personal server?
I started a personal server with
p4 -u itsame -d c:\perforce\local -c itsameClient clone -m 1 -v -p p4server:somePort -f //repo/path/...
It works - it can use it in p4v or from the command like…

Matt
- 25,943
- 66
- 198
- 303