O'Reilly logo

Learning Perforce SCM by Robert Cowham, Neal Ralph Firth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Some basic best practices

P4V caches command responses. Many P4V commands respond with a wealth of information. Caching those responses and re-scanning, as opposed to making duplicate requests, limits the overhead associated with automated processing.

Scripting Perforce

Because of the power of the underlying API, Perforce is very easy to script and automate. Details of this are outside the scope of this book, but you can find a lot of information on their website or on the forums.

Tip

We have done lots of scripting over the years. While it is possible to run P4 commands as described previously and parse the results, we always prefer to use languages such as Python, Ruby, Perl, .Net, or Java. Each of these languages has its own fully supported API ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required