文档

支持

Unity Version Control

Update files before checkout

Create a trigger that verifies files are updated before they are checked out.
阅读时间1 分钟最后更新于 5 个月前

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"