Jump to content


P4 OPENED vs FSTAT (clientFile)

P4API P4 p4 opened p4 fstat

  • Please log in to reply
No replies to this topic

#1 mister_wilson

mister_wilson

    Advanced Member

  • Members
  • PipPipPip
  • 121 posts
  • LocationMontreal, Quebec

Posted 21 March 2016 - 07:45 PM

Hi,

Is there a way to have the "clientFile" record field from a "p4 opened" command to display in workspace format similar to the "clientFile" record field from a "p4 fstat" operation? (without having to call another perforce command like where or even fstat)

For example I want to return the list of Opened files from a particular changelist.
P4Command.Run("opened", "-c", "637883", "//...")



OPENED SAMPLE
-------------------------
p4 -Ztag opened -c 637883 //...
... depotFile //depot/branch/mydir/testfile.txt
... clientFile //jwilson_TEST_PC-0123/depot/branch/mydir/testfile.txt <<----- clientFile is not in WORKSPACE format (would need to run a p4 where or fstat to get the format that i want)
... rev 186
... haveRev 186
... action edit
... change default
... type text
... user jwilson
... client jwilson_TEST_PC-0123


FSTAT SAMPLE
-------------------------
p4 fstat //depot/branch/mydir/testfile.txt
... depotFile //depot/branch/mydir/testfile.txt
... clientFile F:\P4\1666\depot\branch\mydir\testfile.txt <<---- clientFile in WORKSPACE format
... isMapped
... headAction edit
... headType text
... headTime 1457034543
... headRev 186
... headChange 818942
... headModTime 1457034495
... ... otherOpen0 jwilson@jwilson_TEST_PC-0123
... ... otherAction0 edit
... ... otherChange0 637883
... ... otherOpen 1

If I had 10000 files opened for edit, I would hate having to run a "p4 where" or "p4 fstat" on each file element to get the physical workspace file.

Thanks,

-Jonathan





Also tagged with one or more of these keywords: P4API, P4, p4 opened, p4 fstat

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users