7 years agoSven Erik Knop committed change 23700 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Completed test cases for Stream Transfer, including rename. Good to go, no further changes required from my point of view. | ||
Add a comment | ||
7 years agoSven Erik Knop committed change 23699 into p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
7 years agoSven Erik Knop committed change 23692 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Simple trigger that logs sizes of submitted changelists. Invoke with python3 SizeLogger.py <config> <change> where config is the fil...ename of a config file containing the following two sections: -------------- [P4] port=1666 user=tom password=A154ABF11F094B5D288CA0BE9F6F1086 [Log] logfile=mylogfile.log -------------- The P4 connection will use the standard defaults for any parameters not defined (such P4PORT, P4USER) The default log file is called 'sizes.log' Since this trigger is based on the standard P4Triggers.py, it will also create a separate log file (p4triggers.log) for any errors that occur from a connection failure or other exception thrown. Install this trigger like this in the triggers table: SizeLogger change-commit //depot/path/... "python3 SizeLogger.py configfile.name %change%" You need to have P4Triggers.py in the same path as the SizeLogger.py file. --------- This trigger uses 'p4 describe' to collect all files in the change, filters out any files that do not have 'add' or 'edit' action, and then sums up the remaining file sizes - so branches and renames are ignored. The output in the log file is in JSON format for easy parsing. --------- I also updated P4Triggers.py to add size and digest to the internal stored change « | ||
7 years agoSven Erik Knop committed change 23630 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Beginning of a GUI tool to check and set configurables. | ||
7 years agoSven Erik Knop committed change 23623 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Updated to enable renaming of target streams | ||
7 years agoSven Erik Knop committed change 23587 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Renamed to Transfer | ||
7 years agoSven Erik Knop committed change 23586 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Little tool to transfer stream hierarchies | ||
7 years agoSven Erik Knop committed change 23208 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Use decorator to surround tests for simplication. | ||
7 years agoSven Erik Knop committed change 23188 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Add another two test cases that are expected to fail for now. Need to rethink how these issues can be addressed, might need an additional check. | ||
7 years agoSven Erik Knop committed change 23177 into p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
7 years agoSven Erik Knop committed change 23176 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow New test case checking the exception itself. | ||
7 years agoSven Erik Knop committed change 23175 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Additional test case checking multiple directories in the same change. | ||
7 years agoSven Erik Knop committed change 23174 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow New test case verifying that a conflict in the same change is caught. | ||
7 years agoSven Erik Knop committed change 23173 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Fixed one problem - move/add now recognised | ||
7 years agoSven Erik Knop committed change 23172 into p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
7 years agoSven Erik Knop committed change 23171 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Added simple directory fail test | ||
7 years agoSven Erik Knop committed change 23169 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Added test for foo != FOO/bar | ||
7 years agoSven Erik Knop committed change 23168 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Simple test to proof that the basic premise of the CheckCaseTrigger works. | ||
7 years agoSven Erik Knop committed change 23167 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Fix bug where a keyword argument contained '=' itself. The trigger accepts keyword arguments in the form key=value, for example port=server:1666 ... In the test case, I am passing in port as "rsh:p4d -r /path/to/root -vserver=3 -i", which gets split into three and not two strings. Fortunately, Python's string.split() has an optional argument limiting the number of splits. « | ||
7 years agoSven Erik Knop committed change 23154 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Adding further test cases. Testing can only be done on Linux (case sensitive file system) | ||
7 years agoSven Erik Knop committed change 23145 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow example for client default trigger | ||
7 years agoSven Erik Knop committed change 23144 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Beginning of TestCase for CheckCaseTrigger | ||
8 years agoSven Erik Knop committed change 22579 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Updated copyright notice | ||
8 years agoSven Erik Knop committed change 22578 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Little example tool to identify which changes have been completely integrated via copy. The tool will collect the respective change descr...iptions and append them to the existing change description. Note that this script only prints out the resulting change description. A trigger might run 'p4 change -f' to update the integration description. « | ||
8 years agoSven Erik Knop committed change 21316 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Enhanced error output to print the actual exception. Should make debugging a bit easier. | ||
8 years agoSven Erik Knop committed change 21258 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Fixed crashing on changes that have no add or branches. Improved reporting. | ||
8 years agoSven Erik Knop committed change 21202 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Completed the trigger for now, subject to unit tests This trigger is supposed to prevent a submit of a new file (or a branch) that would create a co...nflict between a filename and a directory name. In Perforce, it is currently possible to submit a filename that exists already as a directory name, because the server does not recognise directory names as independent entities. When this happens, clients cannot sync files anymore from the path: files and directories cannot live in the same file system with the same name. This trigger will analyse a submit (as a change-submit trigger *only*): - extract all "add" and "branch" operations - extract all unique directories out of the above list - extract all file names out the above list - check that there is no file already submitted that matches the directories - check that there is no directory already submitted that matches the files This trigger will run 3 Perforce queries: extract the change, list matching files and list matching directories. This trigger should run as a user who has list permissions for all possible files under the path specified in the trigger table. The user needs to have a permanent ticket available on the server for the trigger to run. Output is a list of all violating files: Your submission has been rejected because the following files or directories already exist as a directory or file. Your file: //depot/file1 « | ||
8 years agoSven Erik Knop committed change 21201 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Now with case-sensitive protection | ||
8 years agoSven Erik Knop committed change 21200 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Beginning of FileDirectoryProtector. This trigger is supposed to protect from the situation where a user submits a file that has the same name as a... directory. The Perforce server cannot detect this, causing all kinds of problems along the line. Step one: break a submit down into its directories and files. « | ||
9 years agoPascal Soccard committed change 19873 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Replaced iteritems() method by compatible Python 3 items() method | ||
9 years agoPascal Soccard committed change 19872 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Fixed missing tabulations for previous fix | ||
9 years agokwirth committed change 19871 into p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
9 years agoSven Erik Knop committed change 19621 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Little Tuturial for SDK tutorials | ||
9 years agoSven Erik Knop committed change 18662 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow P4Python 2015.2 for Python 3.5 32 and 64bit Windows installer | ||
9 years agoSven Erik Knop committed change 17347 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow P4Python 2015.2 Patch 1 binaries | ||
9 years agoSven Erik Knop committed change 17262 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Added binary installers for P4Python 2015.2, by popular demand | ||
10 years agoSven Erik Knop (on behalf of karl_wirth) committed change 15864 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow - Incorrect version shelved in update. This version includes Typo fix. | ||
10 years agoSven Erik Knop approved review 15862 for p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow - Incorrect version shelved in update. This version includes Typo fix. | ||
10 years agoKarl Wirth requested review 15862 for p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow - Incorrect version shelved in update. This version includes Typo fix. | ||
10 years agoSven Erik Knop (on behalf of karl_wirth) committed change 15860 into p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
10 years agoSven Erik Knop approved review 15818 for p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
10 years agoSven Erik Knop addressed an issue on review 15818 (CheckCaseTrigger.py, line 315) for p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Need to check whether 'user' exists, or you will get an exception: if 'user' in kargs and kargs['user'] == 'git-fusion-user' | ||
10 years agoKarl Wirth commented on review 15818 (CheckCaseTrigger.py, line 317) for p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Thanks. Code updated with suggested fix. | ||
10 years agoKarl Wirth updated files in review 15818 for p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
10 years agoSven Erik Knop committed change 15832 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Updated with comment about Python 2 | ||
10 years agoSven Erik Knop committed change 15831 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Little tool to create test files | ||
10 years agoSven Erik Knop opened an issue on review 15818 (CheckCaseTrigger.py, line 315) for p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow Need to check whether 'user' exists, or you will get an exception: if 'user' in kargs and kargs['user'] == 'git-fusion-user' | ||
10 years agoKarl Wirth requested review 15818 for p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
10 years agoSven Erik Knop committed change 15653 into p4pythonlib:p4pythonlib, stuff-tom-follows:multiuserfollow | ||
10 years agoSven Erik Knop committed change 15141 into p4pythonlib:p4pythonlib,
stuff-tom-follows:multiuserfollow P4Python for Python 2.6 32 bit incl SSL | ||