Documentation

Support

Unity Version Control

Update files before checkout

Create a trigger that verifies files are updated before they are checked out.
Read time 1 minuteLast updated a month ago

This sample is a Ruby script that ensures that files are up to date before you check them out.
#!/usr/bin/rubyfiles = ''STDIN.readlines.each do |line| files << " " << lineendsystem("cm update #{files}")

Trigger creation command (Windows)

cm trigger create before-clientcheckout "update before co" "ruby c:\plastic\triggers\update-before-co.rb"