title: perforce equivalent of svnversion
body: <p>Is there something similar to svnversion command in perforce ?</p>
  
  <p>The project I'm working on has a release shell script. It would be nice if that script could check that the local copy of the repo has no modifications and no mixed versions. It would also be nice if the last commit number could be stored in the script output too. I used to do this using svnversion but now I must use perforce.</p>
  
  <p>I thought I was used to CLI and would have no problem looking for what I wanted with p4 help but instead I was made humble again. ;-)</p>