Change 8289

sven_erik_knop (Sven Erik Knop)
Sven Erik Knop committed this change into //guest/sven_erik_knop/P4Pythonlib/triggers
Request Review
Download .zip
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.
  • Files 1
  • Comments 0
0 edited 1 added 0 deleted
AutoArchiveTrigger.py#1
Loading...
Tip: Use n and p to cycle through the changes.