Duplicate changes

Hi!

I have a problem in "Changes" for build. WHen I open this window, I see some changes duplicated, here is an example:

11 Nov 09 21:49 vdan (2 files)  svn: 57495

[GFTSRV-16455]

Run build with this change...

Changed: 2 files (2 modified)
edited components/MarginCalculationLogic.java
edited components/MarginInfo.java
  

11 Nov 09 21:49vdan (2 files)  svn: 57495

[GFTSRV-16455]
Run build with this change...

Changed: 2 files (2 modified)

edited components/MarginCalculationLogic.java
edited components/MarginInfo.java

It's strange, cause I don't see any differences between these changes. And also it's strange that it happens not in every build and not with every change. Sometimes one change isn't duplicated and another is. Could you please help?

13 comments
Comment actions Permalink

Ekaterina,

 
  There is a known problem with TeamCity if you use several VCS roots pointing to the same repository. Please watch/vote for the issue.


0
Comment actions Permalink

Oh, I see now.
So if I use one VCS root with one repository, I'll not have this problem.

Thanks for you reply!

0
Comment actions Permalink

But it's strange, I have the same problem in project, where there is only one VSC root for it's repository.

0
Comment actions Permalink
 
What TeamCity version are you using now? Can you please attach a screenshot of the My Changes with all changes expanded?
0
Comment actions Permalink

Teamcity 4.5.4

Screenshot with changes for project is attached. We don't have any more VCS roots which have the same repository, and VCS root for this project isn't used in other projects.



Attachment(s):
changes.jpg
0
Comment actions Permalink

And here is one more example. These 4 projects have the same VCS root, but not all the changes are duplicated. You can see it in attached file. Some changes are shown 3 times, some - 2, and some aren't repeated at all.

Also it seems that if I have 2 projects with one VCS, than copy this VCS so that every project use it's own VCS root (so I have 2 VCS root which have the same repository), changes aren't duplicated. At least changes aren't duplicated as often as it was with one VCS root.

So now I can't understand the logic of this duplication



Attachment(s):
diff_changes.jpg
0
Comment actions Permalink
For the time being, if the same change appears in both svn:externals and VCS root 
(that points to the same repository) Teamcity will show duplicates in changes list.
If this is not the case, please attach screenshots of your VCS settings page for
the build configuration.
0
Comment actions Permalink

Sorry, but could you please explain this: 'same change appears in both svn:externals and VCS root '.
How can I check it?

0
Comment actions Permalink

And here are externals settings for the first example - it's 'ignore externals'. And VCS root for this projects isn't used in other projects, and no other projects have VCS with the same repository link.



Attachment(s):
externals.jpg
0
Comment actions Permalink

Ekaterina,

Can you please provide me the path of modified files from the first example (can be found in change list pop-up or Changes tab)? Also please attach screenshot of Settings tab of the build configuration to see VCS roots settings and checkout rules?

0
Comment actions Permalink

Here are paths:

svn: 57481 11 Nov 09 15:57mtrevgoda (1 file)

[GFTSRV-16396]
Run build with this change...
  
Changed: 1 file (1 modified)
edited components/wap/src/gft/wap/AlarmUtil.java



svn: 57481 11 Nov 09 15:57mtrevgoda (1 file)

[GFTSRV-16396]
Run build with this change..

Changed: 1 file (1 modified)
edited components/wap/src/gft/wap/AlarmUtil.java






Screenshots are attached.



Attachment(s):
VCS.jpg
Version_control_settings.jpg
0
Comment actions Permalink

Ekaterina,

I see you have also issue about of 2 instances of TeamCity using the same MySQL database. Did you resolve it? That is a critical misconfiguration that can cause the issue in this thread.

If you still experience duplicating changes for new commits after duplicate TeamCity instances issue resolution, we will need teamcity-vcs.log file with debug mode turned on for future investigation.

0
Comment actions Permalink

We resolved the problem with 2 teamcity instances, and it seems that the problem with changes duplication disappeared. Thank you very much for your help!

0

Please sign in to leave a comment.