Jump to content


Override Submit action

p4v custom submit

  • Please log in to reply
1 reply to this topic

#1 S1L3nCe

S1L3nCe

    Newbie

  • Members
  • Pip
  • 1 posts
  • LocationFr

Posted 12 September 2019 - 12:42 PM

Hello,

I am currently looking for a way to automatically update comment fields such as LastDate/LastAuthor in header files of a CL when submitting it.

I already tried triggers and specifically change-content ones. But this is server side and I didn't find how to update the content of the files.
So another solution could be to make my own script to submit client side. This script could update files content locally and then calling p4 submit command.

So is there a way to override p4v Submit action (Ctrl+S) to execute my script instead of the default command ?

Thanks

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 917 posts

Posted 13 September 2019 - 02:44 PM

Sounds like you might want to just use the +k filetype with the $Date$ and $Author$ keywords?

https://www.perforce...s.keywords.html





Also tagged with one or more of these keywords: p4v, custom submit

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users