Single file checkout rule and VCS checkout mode

I have an SVN VCS root with the following checkout rule: +:GlobalAssemblyInfo.cs

If VCS checkout mode is set to "Always checkout files on server" it works.  If it is set to the default/recommended option of "Prefer to checkout files on agent" it fails with the following message:

"Failed to perform checkout on agent: org.tmatesoft.svn.core.SVNException: svn: E200007: Error during update from https://.../GlobalAssemblyInfo.cs to ...\GlobalAssemblyInfo.cs
svn: E200007: URL 'https://.../GlobalAssemblyInfo.cs' refers to a file, not a directory"

What is the reason for this working in one case and not the other?  Is there a way to make this work with the recommended setting?

Using TeamCity Enterprise 10.0.4 (build 42538)

0
1 comment
Official comment

Hello,

  Unfortunately, single-file checkout rules do not work with agent side checkout in SVN. With server-side checkout is works only accidentally, the proper support of this feature is not available: https://youtrack.jetbrains.com/issue/TW-8415

  So in your case the proper way would be to stick to server-side checkout if you want to checkout individual files based on checkout rules.

  On the other hand, you can use SVN externals with individual files, and this should work both with server-side checkout and agent-side checkout.

  Hope this helps,

Please sign in to leave a comment.