I'm trying to understand TeamCity logic about SCM changes, using ClearCase (base).
As a developer check-in some code (with one click, "Apply to All"), it would be nice that (without using ClearCase UCM) all its modifications correspond to a single change in TeamCity.
But results vary.
So I'm wondering what are the applied rules to gather SCM file modifications into one TeamCity change.
After making some tests, on two files simultaneously checked-in into ClearCase, it seems that the ClearCase "create version" date determine the number of changes in TeamCity. If it's the same time, there will be only one change. If two files have their versions created with one second delay, there would be two changes. So, no link with file modification time, or change associated comment content...
Please, could you confirm, or infirm, that theory? (a)
I notice also that changes time in TeamCity is set to one second later than the "create version" time. So where this value does-it come from? (b)
Also, I've notice some problem in changes comment description. In fact, sometimes, there's a concatenation of previous comment with new ones. I did not have reproduced that bug in order to understand why it occurs.
If you have some advice about this mechanism, I'd be glad to see deeper. I've got the code from SVN (c).
Here is a last remark. It seems that some changes are not fully taken into account by the plug-in. I’ve got two examples.
- I’ve added to source control 5 news files in a row with the same comment. TeamCity detected one new change but associated only one file! And in the work directory all the 5 new files were present. (d)
- I used to have an error during labelling. In fact, TeamCity tried to put a label on an element that was no longer managed any more in SCM. As it was deleted before the build relative change, it seems that this deletion hadn’t been taken into account (I did not see it in the change list). (e)
I'm ready to help investigations in order to a better comprehension of these (sometimes strange) mechanisms.
My config is: TeamCity 4.0.2 / Windows XP / ClearCase 18.104.22.168