Jump to content


P4JAVA Equivalent to p4 changes -m1 @workspace

p4java perforce api

  • Please log in to reply
2 replies to this topic

#1 sravs

sravs

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 30 March 2018 - 04:55 AM

I need to find out what is the last revision Sync to my workspace but using the P4JAVA API, Any help??

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1074 posts

Posted 30 March 2018 - 05:25 PM

Similar question posted to SO recently has a code sample that looks useful:

https://stackoverflo...578623#49578623

What might give you better results is the "p4 cstat" command, though.  It looks like you can use this method to just send an arbitrary command to the server, so you could try passing "cstat" and see if the results you get back are helpful for your use case:

https://www.perforce...-java.util.Map-

#3 sravs

sravs

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 30 March 2018 - 08:29 PM

Thank you





Also tagged with one or more of these keywords: p4java, perforce, api

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users