Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can I get a list of files changed since 1st January?

(RTC 4.0.4, Visual Studio 2010 or Eclipse) We need to ensure that the correct copyright is placed in our C++ files.  Before our next software release is there an easy way to produce a list of all files that have been delivered to a stream this year?

1

0 votes

Comments

Have you tried to use the "Search" feature in the Eclipse Client? It is not possible to search for files directly, but you can search for change sets. Try the "Search" Menu item in the Eclipse client, select Jazz Source Code Control as the Menu Item with the subnode "Change Sets" and in the Search dialog in the upper part you can select the context for the search, e.g. the stream that you want to control and in the "properties" section of the search you can adjust the Date. That will bring up a list of all change sets that have been delivered to the stream after the date you set.
Ist that what you want to achieve?

Henning

Thanks for your suggestion.  Unfortunately I'd like files, not change sets.  For instance, one file may be changed in 30 change sets, I don't want to check the same file 30 times!

A colleague (Ken McRae) suggested that I create a new workspace from the stream, discard all change sets since 1st Jan, then compared the workspace with the stream.  I haven't tried it yet.

If you are going to write a script you could use the command line. Command line can print the output in json format so that it can be easily parsed.

To list the changesets: scm list changesets -w <stream name> --created-after <date> --json
To list files in the changeset: scm list changes -r <repoUri> <change-set uuid> --json


Thanks. I've not heard of json format before.  Can the output be in plain text, or CSV?

The default output is in plain text (if you omit the --json option). But we recommend using json output format as any changes to plain text format could break the scripts.

showing 5 of 6 show 1 more comments

Accepted answer

Permanent link
Starting in 6.0.3, this can be achieved in the Eclipse Client by exporting a change log from the change explorer or change summary views.

The steps are roughly:
  1. Search for change sets using Search > Jazz Source Control > Change Sets, with appropriate date, location and component set.
  2. In the search results tab, select the change sets and select Open With > Change Explorer
  3. In the Change Explorer view menu, select Save Change Log...
Ensure "Change sets" is not selected, Select "Filesystem changes".  The result will be a list of the modified files.


Michael Valenta selected this answer as the correct answer

1 vote

Comments

Another approach would be to show the operation history of the stream and compare the last entry for the previous year to the latest in the stream and generate a change log from that.


One other answer

Permanent link
Hi Eddie,
I know that e.g. git has such feature so why there is a good reason to create RFE for that:  https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=297000

Feel free to subscribe to this rfe to track the progress.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 1,202

Question asked: Jan 08 '14, 10:54 a.m.

Question was seen: 6,054 times

Last updated: Jan 08 '21, 11:20 a.m.

Confirmation Cancel Confirm