Jump to content

What format is required for "cm find" parent where argument?


ferdBerful

Recommended Posts

cm find revision

outputs something like this:

...

24      07/26/2016 20:24:42 dir peter    /home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir3/subDir3/subSubDir3#br:/main#1   
375      07/26/2016 20:28:39 txt peter    /home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir1/subDir2/file1#br:/main#2   
376      07/26/2016 20:28:39 txt peter    /home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir1/subDir2/file2#br:/main#2   
377      07/26/2016 20:28:39 txt peter    /home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir1/subDir2/file3#br:/main#2   
378      07/26/2016 20:28:39 txt peter    /home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir1/subDir3/file1#br:/main#2   
379      07/26/2016 20:28:39 txt peter    /home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir1/subDir3/file2#br:/main#2   
380      07/26/2016 20:28:39 txt peter    /home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir1/subDir3/file3#br:/main#2

...

 

I want to use "where parent" to limit the output to just revisions under dir1/subDir2

 

So I tried:

 

cm find revision where parent="'dir1/subDir2'"

and

 cm find revision where parent="'/home/peter/experiments/plastic/plastic:8087/peterRepoWs/dir1/subDir2'"

 

Neither one produces any results.

 

What kind of thing is "parent" looking for?

 

 

 

Link to comment
Share on other sites

Hi,

 

I would recommend you to check our "cm find" guide:

https://www.plasticscm.com/documentation/cmfind/plastic-scm-version-control-query-system-guide.shtml

 

Regarding the parent option, it refers to the revision parentship (not folder parentship). For instance the next command outputs the different revisions ids and also the ids of the revisions parents.

 

eg:

cm find revision --format="{id}#{parent}"

 

 

Regards,

Carlos.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...