Jump to content


How to read workspace file content with P4JsApi?

P4JsApi file content

  • Please log in to reply
2 replies to this topic

#1 tkokof

tkokof

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 05 June 2019 - 03:58 AM


I'm trying to do some customizations for P4V using P4JsApi and I can not figure out how to read workspace file content, any suggestions ?

(P4JsApi supports "p4 print" command but it seems to be only for depot files; "p4 print" + "p4 diff" is a way to get workspace file content, but it is complex and seems not suitable for new(add) file)


#2 tkokof

tkokof

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 27 June 2019 - 12:12 PM

There is no direct way to do this now with P4JsApi, but the pending P4V release may contain a command to print workspace file content just as "p4 print".

#3 iosman123

iosman123

    Newbie

  • Members
  • Pip
  • 3 posts

Posted Yesterday, 12:34 PM

View Posttkokof, on 05 June 2019 - 03:58 AM, said:


I'm trying to do some customizations for P4V using P4JsApi and I can not figure out how to read workspace file content, any suggestions ?
(P4JsApi supports "p4 print" command but it seems to be only for depot files; "p4 print" + "p4 diff" is a way to get workspace file content, but it is complex and seems not suitable for new(add) file)

thanks my issue has been fixed.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users