Jump to content
PDAtomic

Query changes to files matching name pattern

Recommended Posts

I'm trying to find all revisions or changesets that affects files with names matching a specific pattern (in this case files that contain the word "crate" or "Crate").

 

This will list revisions of all files like expected:

cm find revision

12       9/22/2016 4:53:09 PM txt aharris  c:\Users\abyrd\wkspaces\<project>\ProjectSettings\AudioManager.asset#br:/main#1   
...

 

And this will show the 'item' field

cm find revision --format={item}

c:\Users\abyrd\wkspaces\<project>\ProjectSettings\AudioManager.asset
...

 

Yet this will not find any results

cm find revision where item='%AudioManager%'

Total: 0

 

How do I perform this query correctly?

Share this post


Link to post
Share on other sites

Hi,

you can use the find revs command and pipe the result to the grep or FINDSTR commands

c:\Users\manu\eclipse\tests\org.eclipse.rap.ui.tests.harness>cm find revision | FINDSTR VerifyDialog
45       11/28/2016 1:41:57 PM txt mlucio   c:\Users\manu\eclipse\tests\org.eclipse.rap.ui.tests.harness\src\org\eclipse\ui\tests\internal\util\VerifyDialog.java#br:/main#1

Best,

Manu.

Share this post


Link to post
Share on other sites

Thanks for the tip. It's interesting that a basic query like this requires external tools. Why doesn't where item='%AudioManager%' work? From what I've seen in the limited documentation, is this not exactly how it's supposed to be used?

Share this post


Link to post
Share on other sites

Hello PDAtomic,

can you please highlight the missing topics of the online documentation? We would like to improve it based in our users feedback.

I'm afraid the wildcards are not supported for the items names.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...