Perforce: Difference between "Action" and "HeadAction" in fstat?

I am currently working on a function that allows the user to determine which files in a folder are not synchronized.

My code currently works well, basically what I did:

  • Fstat in folder
  • Iterate over the results and mark the entries that fulfill both of these conditions:
    • Revision! = Revision of the head
    • HeadAction == Edit

With that said, can I fix the use of HeadAction instead of Action in my conditions? What is the difference between the two?

According to Perforce:

  • HeadAction: action taken when revising a chapter, if in a depot.
  • Action: Open an action if it is open in your workspace.

For some reason, I do not find these descriptions useful.

Can someone rephrase these ..?

thank

+3
2

'headAction' - - , ​​ . "" ( ) , "" , , "", ( ). (, "", "" ..).

'action' - , . "edit", "". , "delete", "delete". , headAction.

. . 1 . - "". . fstat:

d:\projects\tools\test>p4 fstat new_file.txt
... depotFile //tools/test/new_file.txt
... clientFile d:\projects\tools\test\new_file.txt
... isMapped
... headAction add
... headType text
... headTime 1285014691
... headRev 1
... headChange 759253
... headModTime 1285014680
... haveRev 1

d:\projects\tools\test>p4 edit new_file.txt
//tools/test/new_file.txt#1 - opened for edit

d:\projects\tools\test>p4 fstat new_file.txt
... depotFile //tools/test/new_file.txt
... clientFile d:\projects\tools\test\new_file.txt
... isMapped
... headAction add
... headType text
... headTime 1285014691
... headRev 1
... headChange 759253
... headModTime 1285014680
... haveRev 1
... action edit
... change default
... type text
... actionOwner fred.flintstone

, , , 'hasRev' vs 'headRev'. headRev is > hasRev, . , , , headAction . , , .

, HTH.

+5

,

p4 sync -n <folder_name>/...

, .

+2

All Articles