It's all about the answers!

Ask a question

Search for a file in source code repository

Gaurav Tapadkar (2611) | asked Oct 24 '14, 10:01 a.m.
I am looking for a way to search for a particular file in RTC source code which can exist in any of the multiple projects in our repository. I want to search it without downloading source code on my local. We have multiple projects and each projects have multiple components. 

2 answers

permanent link
sam detweiler (12.5k6188201) | answered Oct 24 '14, 10:34 a.m.
I don't think there is a 'file' search feature, and certainly not across multiple projects concurrently.

you could take the stream dump code I wrote for that permissions problem we had on the conversion and turn it into a search tool..  the code was on the shared drive

get all streams, loop thru stream looking for file
this will not be 'fast'

Gaurav Tapadkar commented Oct 24 '14, 4:30 p.m. | edited Oct 25 '14, 12:11 p.m.

 Thanks Sam and Geoffrey for your replies. 

Sam, I will check the stream dump and will try to get a search tool. 

Geoffrey, yes this feature works but not with the regular expression pattern. 

It shows list of change sets which have a file name begins with entered text. And then you have to open each folder in change set to look for a particular file. I could not find a way to search by other criteria like contain the string etc.

permanent link
Geoffrey Clemm (30.0k23035) | answered Oct 24 '14, 10:50 a.m.
From the Eclipse client, you can use the "Search -> Jazz_Source_Control -> Change_Sets" command.
That lets you search the entire repository or just a particular component, and lets you specify various properties of the file (such as filename prefix, when it was created, who created it).   It does not provide "content-based search" (e.g., find all files that contain the string "abc").

Your answer

Register or to post your answer.