Find revisions
Find revisions with the cm find command in Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago
Find and filter revisions.
Filtering options
The following list displays the different filtering options (wherecm find revisionsarchivedattributeattrvaluebranchchangesetdateguididitemitemidlabelmarkerownerparentrepllogidreplsrcdatereplsrcidreplsrcrepositoryreplsrcserverreturnparentshelvesizetypeworkspacecheckoutid
Output options
The following list displays the different output options (--formatcm find revisionsbranchchangesetdateiditemitemidownerparentsizetype
cm find revisions
examples
cm find revisionsFind revisions made in a specific changeset
You can use a custom format, for example if you only want to find the file and folder paths of the revisions in a specific changeset:You can also use PowerShell or Bash to filter by folder:cm find revisions "where changeset=16716" --format="{path}"d:\linked_replicated\d:\linked_replicated\01nervad:\linked_replicated\01nerva\srcd:\linked_replicated\01nerva\src\clientd:\linked_replicated\01nerva\src\client\plasticd:\linked_replicated\01nerva\src\client\plastic\libplasticTranslations.es.resxd:\linked_replicated\01nerva\src\client\plastic\libplasticTranslations.resxd:\linked_replicated\01nerva\src\client\plastic\ActionMenuManager.csTotal: 8
-
Powershell:
cm find revisions "where changeset=16716" --format="{path}" --nototal | where {$_ -match "client\\"}
-
Bash:
bcm find revisions "where changeset=15430" --format="{path}" --nototal | grep client\/
Find revisions for a branch
The following example returns all the revisions for a specific changeset within a specified timespan:You can also use PowerShell or Bash to filter the information:cm find revisions "where branch = 'main/Fix-4.1/scm12814' and date <= '2013/05/30' and date > '2013/05/28'" --format="{date} - {path}"
- Powershell:
cm find revisions "where branch = 'main/Fix-4.1/scm12814' and date <= '2013/05/30' and date > '2013/05/28'" --format="{date} - {path}" | where {$_ -match "view\\"}
- Bash:
cm find revisions "where branch = 'main/Fix-4.1/scm12814' and date <= '2013/05/30' and date > '2013/05/28'" --format="{date} - {path}" | grep view\/`