Mercurial project with subrepository

I have a project checked into Mercurial and it has a subrepository:

MyProject
|
|----CommonCode

When I set up a VCS root, to check out from MyProject, it doesn't get the CommonCode files, so my build breaks.  How can I get TeamCity to checkout the subrepo at the same time?  From a command line, if I do an hg clone http://hg/myproject, it gets both the myproject files AND CommonCode files.  What is going on with the checkout in TeamCity (7.1.3)?

3 comments
Comment actions Permalink

Hello,

mercurial subrepos are fully only with agent-side checkout. Please switching to agent-side checkout. Let me know if helps.

0
Comment actions Permalink

That did the trick.  Can you give me a little more detail as to why it must be agent side checkout?

0
Comment actions Permalink

The problem is that during an incremental server-side checkout TeamCity detects only changes in .hgsub/.hgsubstate and doesn't try to build a patch for subrepos. But with agent-side checkout we build a correct patch. Please watch/vote for http://youtrack.jetbrains.com/issue/TW-11229 for subrepos support.

0

Please sign in to leave a comment.