Monday, May 28, 2012

How to find objects present more than twice on the project tree (Synergy tip work)

There is a bug in Synergy 7.1* running on Linux server (PM29256, http://www-304.ibm.com/support/docview.wss?uid=swg1PM29256).
If the same object is present twice in different directories the Sync fails with the  “Warning: Error in Executing SVM request” or crashes altogether.
According to IBM it has been fixed in 7.2.

In the meanwhile the workaround is to replace the object with the soft link to it in all the occasions but the one. This will work for the projects being developed in Linux environment.

To find out the “duplicated” objects:

1.      ccm query "is_member_of(‘4 part project identifier’)" -u -f %objectname > project_members.list
2.      for obj in `cat project_members.list `;do echo $obj >> duplicates; ccm query "has_child('$obj','projectname#version')" >> dupl_dirs;done
3.      grep -B2 ^2\) dupl_dirs

Where the project details are needed use the project in questionJ.


This will yield the list of the objects that appear on the tree twice. E.g.

myfile.h#ver2:incl:1
1) base #ver12 integrate david dir YYY 2  85654
2) http#ver32  integrate david dir YYY 17 21471
--
abc#ver4:script:1
1) foo#ver.3 released abby dir YYY 1  29349
2) bar#ver.2 released abby dir YYY 31 22563

End of story.

No comments:

Post a Comment