Compare Workspaces, what means equal?
![]()
sam detweiler (12.5k●6●191●201)
| asked Feb 07 '14, 6:09 p.m.
retagged Feb 12 '14, 10:23 a.m. by Sonia Dimitrov (271●5●9)
my migration utility copies workspaces from one repository to another.
I have almost 400 of them to do.. many will not have changed since last time I did this. I've coded up the code to compare them first, and only copy if they are different... but there are so manay elements in the compare results object. is there an easy way to sum up all the results? |
Accepted answer
![]()
Sam,
Using change sets is fine as long as you are not concerned about baselines. Otherwise, You could include baselines and check whether those lists are empty as well. sam detweiler selected this answer as the correct answer
Comments thanks.. my 'assumption' is that even if one workspace has baselines different from another, it also has changesets different from another.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
A workspace can have baselines that another workspaces does not have, while having exactly the same change sets as the other workspace. For example, start with two workspaces that have the same change sets, and execute a "create baseline" operation in the first workspace. The two workspaces will continue to have the same change sets, but the first workspace will have a baseline that the second workspace does not have.
using both your nudges. I added code to compare for baselines and my previous changeset only checks would have misreported..
thank you.
I updated the code in the prior comment to the latest..
|