Wiki

Clone wiki

P4Notifier / Home

P4 Notifier

p4notifier is a simple python script which periodically - using original p4 client - checks newest commits in observed paths of repository depots. It runs in background and notifies user with a list of most recent commits.

It can be run on Windows as well Linux.

Configuration

Configuration is done by single, self-explanatory *.ini file:

[DEFAULT]
interval=10
p4path=C:\Program Files (x86)\Perforce\p4.exe


[ProjectA]
host=10.0.0.10:1666
workspace=foo
user=bar
pass=qwerty
path=//devel/ProjA/...
limit=10

[ProjectB]
host=10.0.0.10:1666
workspace=foo
user=bar
pass=qwerty
path=//devel/ProjB/...
limit=10

Dependencies

Screenshots

m7bLt.jpg kjijj.png

Running in background

To keep the application simple and portable, daemonizing is done only for Windows (using VB script - runInBackground.vbs). Under Linux it can be done for instance by running:

$ nohup python p4notifier.py &

Updated

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.