Perforce GUI Utilities

Written by Robert Cowham (Perforce Consulting Partner and Certified Trainer).

Here are some utility scripts for adding to the customisable Tools menu of p4win and p4v.

p4unknown.rb Lists all files in the selected directory and below that are not known to Perforce. Puts up a GUI window allowing you to select the ones to add to Perforce. Elaborated from an original script by Jeff Bowles.

Command: c:\ruby\bin\rubyw.exe
Arguments: c:\path\to\p4unknown.rb -p $p -c $c -u $u %D

Requires Ruby 1.8.2+ and FXRuby1.4. Note that it doesn't need to be a console app with the above stuff defined.

tools.txt File to import the various settings to p4win or p4v. Needs to be edited with the location of the script(s).
publish.rb A very simple version of the automated publish script referred to in my blog. Currently a proof-of-concept not a fully fledged article!
  • Has hard-coded values for port etc - needs to be modified to take parameters!!
  • does no error checking to speak of...
  • output is in console windows
publish.py Same as above in Python (note similarity of code which is quite nice...)

Home

Last updated: $Date: 2005/11/29 $