Abdullah Saurav
Abdullah Saurav

Reputation: 33

How to get revision number,author name using P4API in P4.NET?

I am new at using the P4api in C#.I have found a library p4api.dll.It shows that there is a class named P4Revision.But when I try to create an instance of that class,it says that no constructor there.Is there any other way to get the revision number as well as last user updated the file? Thanks in advance

Upvotes: 1

Views: 1716

Answers (1)

Dennis
Dennis

Reputation: 20571

I had a look, using .NET Reflector, at p4api.dll and could not find a class named P4Revision. I'm looking at the CLR 2.0 from the Sourceforge project page.

The P4.NET is made up of two components, a 1-to-1 wrapper around the official C++ API called p4api.dll and a C# consumer called p4dn.dll.

You will be able to the get information you want by running the fstat command using P4Connection.Run(string Command, params string[] Args). Test the command using the P4 command line.

HTH.

Upvotes: 2

Related Questions