# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 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. |
||
#6 | 25715 | Robert Cowham |
Refactor CheckCaseTrigger to work in SDP trigger style - and fix SDP failures. Added modified version of Sven's test harness which works (for Mac at least where some tests must be skipped due to filesystem being case insensitive). |
||
#5 | 24510 | C. Thomas Tyler |
Enhanced CheckCaseTrigger.py so BYPASS_CASE_CHECK override feature works even if the defaultChangeType configurable is set to restricted. |
||
#4 | 24460 | C. Thomas Tyler |
Tweak to case check trigger to allow user to bypass the safety feature by including the token BYPASS_CASE_CHECK in the changelist description. This is likely useful just after initial rollout of the CaseCheckTrigger on an existing server that already contains case inconsistencies. Bypassing the trigger may be required to do some cleanup of existing data. If this trigger is deployed on a new server initially, the bypass may not be needed. |
||
#3 | 21120 | C. Thomas Tyler |
Corrected shebang line in CheckCaseTrigger. Added manual-update version id to replace keyword tag. |
||
#2 | 21098 | C. Thomas Tyler |
SDP-ified: * Changed sample path to reference SDP /p4/common/bin/triggers location. * Changed shebang line to use SDP standard python, which includes P4Python. * Removed the '$Id:' RCS keywordt ag line, as RCS tags aren't allowed in the SDP (since SDP scripts live in many Perforce servers). * Changed file time from text+kx to text+x. * Updated copyright up thru 2016. * One minor cosmetic tweak to doc text. #review-21099 |
||
#1 | 21097 | C. Thomas Tyler | Branched CheckCase trigger into the SDP. | ||
//guest/robert_cowham/perforce/utils/triggers/CheckCaseTrigger.py | |||||
#7 | 19940 | Robert Cowham | Tabs->spaces, adjust some other whitespace | ||
#6 | 19939 | Robert Cowham | Update with latest changes by Sven etc. | ||
#5 | 8050 | Robert Cowham | P4Python 2009.1 | ||
#4 | 8049 | Robert Cowham |
Whitespace only change and comments. Made indents standard and removed tabs |
||
#3 | 8048 | Robert Cowham | Add comment about installing | ||
#2 | 8046 | Robert Cowham | Latest change from Sven | ||
#1 | 7531 | Robert Cowham | Personal branch | ||
//guest/sven_erik_knop/P4Pythonlib/triggers/CheckCaseTrigger.py | |||||
#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/CheckCaseTrigger.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/P4Pythonlib/triggers/CheckCaseTrigger.py | |||||
#1 | 7367 | Sven Erik Knop | New locations for the Python triggers. | ||
//guest/sven_erik_knop/triggers/CheckCaseTrigger.py | |||||
#3 | 7219 | Sven Erik Knop | First attempt for renamer support, not finished yet, therefore disabled. | ||
#2 | 7218 | Sven Erik Knop |
Updated CheckCaseTrigger.py to fix problems with files within directories. The trigger would not detect case problems for files that are located in subdirectories. Unintentional side effect of modifying the dirs list recursively when checking for mismatched directories. The solution was simple: make a copy of the directory list for the file check. |
||
#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. |