Jump to content


Perforce equivalent of the git commit hash

Git Perforce Commit

  • Please log in to reply
1 reply to this topic

#1 konste

konste

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 07 November 2019 - 06:19 PM

We need a way to identify the state of the source control repository used to build particular binary. In Git land we can use Commit Hash to point to the state of the repository at particular moment. What would be the closest equivalent of that in Perforce land?

Konstantin

#2 P4Adam

P4Adam

    Advanced Member

  • Staff Moderators
  • 6 posts

Posted 18 November 2019 - 12:06 PM

A change number is effectively a system-wide version number.

"p4 files //depot/...@123" will list the highest revision of any and all the files in //depot/... at the point when change 123 was submitted, whether or not the change contains those files.

We use this mechanism in our own software releases: for example, "P4D/LINUX26X86_64/2019.1/1876401" is the 2019.1 Server release for 64-bit linux, built with the highest revision of files in the depot at change 1876401.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users