Jump to content

How to get "not latest version of file" and "needs resolve" information?

.NET p4v

  • Please log in to reply
2 replies to this topic

#1 uqtimes



  • Members
  • Pip
  • 2 posts

Posted 29 November 2017 - 06:09 AM

Hi all members,

I'd like to create like p4v tool. I've already downloaded "Helix Core API for .NET" and build my tool project and succeed to get changelists.

So, I'd like to get some information like p4v (please see attached image). How can I get these information?
  1. "not latest version of file" (yellow triangle mark)
  2. "needs resolve" (red question mark)

I've tried these code and check p4 command reference. (p4 change? p4 describe? p4 status?)
But I couldn't get these information. :blink:
var changelist = rep.GetChangelist(211308);
foreach(var file in changelist.Files)
Console.WriteLine(file.Resolved); // always False
Console.WriteLine(file.Unresolved); // always False

Thank you.

#2 Sambwise


    Advanced Member

  • Members
  • PipPipPip
  • 1003 posts

Posted 04 December 2017 - 04:00 PM

Most of that information comes from the "p4 fstat" command.  (To get a peek at what commands P4V is running to populate its various views you can look at the Log pane.)

#3 uqtimes



  • Members
  • Pip
  • 2 posts

Posted 07 December 2017 - 08:30 AM

Hi Sambwise,
Thank you for your reply. I could see the p4v execution log. At first, I couldn't see the detail log. But I could enabled the detail log. [File] > [Preference] > [Logging] > [Show p4 reporting commands (dirs, filelog, fstat, etc.)]

Thank you so much!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users