PURGE REGISTER
Register purge operations with the Unity Version Control CLI.
阅读时间1 分钟最后更新于 10 个月前
Description
Computes and registers a purge action.
File revisions older than the selected date(s) would be considered for purging and, as a rule, we will keep at least a revision in every branch head and labeled revisions. You can use the command to check the selected revisions prior to run it with the command.
cm purge showcm purge executeUsage
cm purge register (<extension> <before_date>)... [--repository=<rep_spec>]
Options
Option / Argument | Description |
|---|---|
| --repository | Repository where the purge is intended to be applied. It is not necessary within a workspace path but to pick a different one. |
| extension | Extension of the file type to be purged. Note that revisions of renamed items will also be considered for its removal. |
| before_date | Only revisions older than this date will be considered for its removal. |
Help
Examples
cm purge register ".mkv" "1955-Nov-05 6:00 AM"
(registers a purge action over revisions of Matroska files created before a certain date)
cm purge register ".mkv" "6:00 AM"
(you can specify just the date or just the time)
cm purge register ".mkv" "6:00Z"
(you can specify the time in UTC instead of local time)
cm purge register ".mkv" "1955-Nov-05 6:00 AM" --repository=timemachine
(you can specify a different repository to register the purge)