# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 8773 | Lester Cheung | "p4util" as an importable Python package. | ||
#1 | 8534 | Lester Cheung |
Great artists steal - so I'm stealing Sven's Python library to make it better! |
||
//guest/sven_erik_knop/P4Pythonlib/triggers/AutoArchiveTrigger.py | |||||
#2 | 8340 | Sven Erik Knop | Added file filter to archive trigger. | ||
#1 | 8289 | Sven Erik Knop |
AutoArchiveTrigger Needs P4Triggers.py to work. Idea: archive binaries automatically, kind of like +S16, only less destructive. Needs two additional parameters, archive=<name of archive depot> kept=<numbers of revisions kept active> For example Triggers: auto_archive change-commit //depot/bigfiles/... "python AutoArchiveTrigger.py %change% archive=bigarchive kept=5 port=1666 user=admin" This will archive every binary revisions of a file but the last 5 into an archive called bigarchive. kept needs to be bigger than 0 Only use with change-commit trigger, or you are on your on. |