p4actions

View on GitHub

p4actions is Eclipse plug-in that adds custom actions to pending Perforce changelists. You can execute any script or command from the context menu of the changelist without leaving the IDE. The output of the executed action is displayed in the Console view.

Installation

  1. Install P4Eclipse from the update site that corresponds to your version of Eclipse
  2. Install p4actions from this update site: http://xakcop.com/p4actions/site (should work for all versions of Eclipse)

Usage

Let's say that we have a script that sends a changelist for review and we want to add an action for this. Open the Preferences and navigate to Team->Perforce->Custom Actions. Click the Add button and you will get the following dialog:

Preferences

Choose name for the new action and select an executable. In this concrete example we are using the post-review script and we specify {cln} as argument which is the placeholder for the selected changelist number.

Now when you right-click on a pending changelist in the 'P4 Pending Changelists' view, you will find the new action in the 'Custom Actions' submenu:

context menu

The output of the executed command is displayed in the Console view. If the output contains hyperlinks, you can click them to open:

console

Known issues

Support or Contact

Feel free to send me any questions, suggestions or feedback at my email address: rgerganov@gmail.com

Copyright © 2012 by Radoslav Gerganov