# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#18 | 26652 | robert_cowham |
This is Tom's change: Introduced new 'Unsupported' directory to clarify that some files in the SDP are not officially supported. These files are samples for illustration, to provide examples, or are deprecated but not yet ready for removal from the package. The Maintenance and many SDP triggers have been moved under here, along with other SDP scripts and triggers. Added comments to p4_vars indicating that it should not be edited directly. Added reference to an optional site_global_vars file that, if it exists, will be sourced to provide global user settings without needing to edit p4_vars. As an exception to the refactoring, the totalusers.py Maintenance script will be moved to indicate that it is supported. Removed settings to support long-sunset P4Web from supported structure. Structure under new .../Unsupported folder is: Samples/bin Sample scripts. Samples/triggers Sample trigger scripts. Samples/triggers/tests Sample trigger script tests. Samples/broker Sample broker filter scripts. Deprecated/triggers Deprecated triggers. To Do in a subsequent change: Make corresponding doc changes. |
||
#17 | 26534 | robert_cowham | Fix specification of p4user option which was getting confused with user being checked | ||
#16 | 24435 | tom_tyler |
Fixed bug in P4Triggers.py referencing an as-yet undefined function.
Changed default LOGS dir to /tmp for non-SDP environments. |
||
#15 | 23830 | robert_cowham |
Refactor and move detection of shelved change up to P4Triggers. Also WorkflowTriggers |
||
#14 | 23671 | robert_cowham | Tweak log setting for trigger logs | ||
#13 | 23670 | robert_cowham | Properly test CheckFixes when no matching project found. | ||
#12 | 23526 | robert_cowham | Fix typo | ||
#11 | 23242 | robert_cowham |
Handle restricted changes (describe requires -f) Don't overwrite a changed changelist description |
||
#10 | 23152 | robert_cowham | Refactor to push common arg_parse into P4Triggers | ||
#9 | 22854 | robert_cowham | Addressed pylint suggestions. | ||
#8 | 22852 | robert_cowham | Refactor reporting | ||
#7 | 22851 | robert_cowham |
Works with job renaming now. Trigger needs to be form-in not form-save. |
||
#6 | 22850 | robert_cowham | Refactored to move common stuff into P4Triggers.py | ||
#5 | 21528 | tom_tyler | Merged Sven's change from @21316: Enhanced error output to print the actual exception. | ||
#4 | 21286 | tom_tyler | SDP-ified log, moving p4triggers.log to ${LOGS}. | ||
#3 | 21120 | tom_tyler |
Corrected shebang line in CheckCaseTrigger. Added manual-update version id to replace keyword tag. |
||
#2 | 21101 | tom_tyler | SDP-ified; changed type to xtext, removed RCS keywoard. | ||
#1 | 21100 | tom_tyler | Branched P4Triggers.py | ||
//guest/robert_cowham/perforce/utils/triggers/P4Triggers.py | |||||
#2 | 19939 | robert_cowham | Update with latest changes by Sven etc. | ||
#1 | 7531 | robert_cowham | Personal branch | ||
//guest/sven_erik_knop/P4Pythonlib/triggers/P4Triggers.py | |||||
#1 | 7367 | sven_erik_knop | New locations for the Python triggers. | ||
#4 | 7379 | sven_erik_knop |
Added output to a log file. The default is the send output to p4triggers.log in the P4ROOT directory, this can be overridden with the parameter log=<path> Also, errors now cause the trigger to fail with sensible output first. |
||
#3 | 7372 | sven_erik_knop | Rollback Rename/move file(s). To folder "perforce" is needed. | ||
#2 | 7370 | sven_erik_knop | Rename/move file(s) again - this time to the right location inside a perforce directory. | ||
#1 | 7367 | sven_erik_knop | New locations for the Python triggers. | ||
//guest/sven_erik_knop/perforce/P4Pythonlib/triggers/P4Triggers.py | |||||
#1 | 7370 | sven_erik_knop | Rename/move file(s) again - this time to the right location inside a perforce directory. | ||
//guest/sven_erik_knop/triggers/P4Triggers.py | |||||
#1 | 6413 | sven_erik_knop |
Added some P4Python-based Perforce triggers. P4Triggers.py is the based class for change trigger in Python modelled on Tony Smith's Ruby trigger with the same name. CheckCaseTrigger.py is a trigger that ensures that no-one enters a file or directory with a name only differing by case from an existing file. This trigger is Unicode aware and uses Unicode-comparison of file names, so it can be used on nocase-Unicode based Perforce servers, which cannot catch the difference between, say, "�re" and "�re" at the moment. clienttrigger.py is a simple trigger that modifies the option "normdir" to "rmdir" for new client specs only. It is meant as a template to create more complex default settings like standard views. |