Jump to content

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?

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.

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...