Compare Workspaces, what means equal?
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
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.
Comments
thanks.. my 'assumption' is that even if one workspace has baselines different from another, it also has changesets different from another.
changeset contained in a baseline are still changesets. I don't care what is in the changeset, just the list of things that are different is all I am looking for.
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..