Find replication logs
Find replication logs with the cm find command in Unity Version Control CLI.
阅读时间1 分钟最后更新于 10 个月前
Find and filter replication operations.
Filtering options
The following list displays the different filtering options () that are available to use with the command:
wherecm find replicationlogbranchdateidownerpackagerepositorynameserver
Output options
The following list displays the different output options () available to use with the command:
--formatcm find replicationlogdateidownerpackageserver
cm find replication
log example
cm find replicationFind all the replication operations for a specific branch from any time chronologically:
cm find replicationlog "where branch = '/semanticmain'" --nototal424089 03/06/2013 12:16:42 codice@diana:9095 F pablo426718 17/06/2013 18:46:38 codice@diana:9095 F pablo427606 17/06/2013 18:50:47 codice@diana:9095 F pablo
If, for example, you want the last date, filter by date and use PowerShell or bash to select the last row.
PowerShell
cm find replicationlog "where branch = '/semanticmain'" --format="{date}" --nototal | select -Last 1
Bash
cm find replicationlog "where branch = '/semanticmain'" --format="{date}" --nototal | tail -n 1
Result
17/06/2013 18:50:47