It's all about the answers!

Ask a question

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


Jia Jia Li (8058157192) | asked Jun 07 '12, 12:05 p.m.
retagged Jun 07 '12, 1:53 p.m. by Evan Hughes (2.4k1318)
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!

One answer



permanent link
Arne Bister (2.6k12832) | answered Jun 11 '12, 9:54 a.m.
JAZZ DEVELOPER
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

Comments
Shashikant Padur commented Jun 12 '12, 12:08 a.m.
JAZZ DEVELOPER

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

Your answer


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