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

scm compare snapshot can not show which file add/modify/delete

The Eclipse client compare snapshot can show the file add/modify/delete.
But when I use command, it only show the diff file, but I do not know which is add/modify/delete.
I use the following cmd:
lscm compare -I f -f b snaphost 1082 snapshot 1086 -r rtc

Can anyone help?

Thanks!

0 votes



One answer

Permanent link
Hi,

the Eclipse snapshot compare has quite a lot of code around it that shows the extra you are missing on the plain command line. The actual underlying compare as realized in
>lscm compare snapshot A snapshot B
will indeed only show the change sets.

You then would need to script a little to loop over the resulting change sets and have each change set display its changes with e.g.
>lscm list changes <ChangeSet ID>

Each file in the resulting list is prepended by a letter corresponding to its change bit:
with
a = added
d = deleted
c = modified
r = renamed
m = moved

You probably want to write a subroutine to parse the output of >lscm list changes to just display the info you are looking for.

I realize this is probably not the answer you wanted to hear, but is it useful nonetheless?

- Arne

1 vote

Comments

There is already a workitem (180926) raised on this issue. The above mentioned workaround should work.

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,014

Question asked: Jun 07 '12, 12:05 p.m.

Question was seen: 7,636 times

Last updated: Jun 12 '12, 12:08 a.m.

Confirmation Cancel Confirm