connect to VCS clone with external client

So I'm fairly new to TeamCity, I've setup a server and a project, got it to clone our repo, and ran the first builds...
Our build process can sometimes generate a fair amount of diffs in versioned files (it's a Unity project with lots of AssetPostprocessors that can sometimes change the metas), and I'd like to track those.
So my question is, can I connect to the agent's repo with a desktop client (we're on Mercurial with TortoiseHG) to view the changes to the working directory? I've located the clone/agent's directory, but there's no .hg folder so Tortoise doesn't consider it a repo. I don't understand how TeamCity tracks this clone...

5 comments
Comment actions Permalink

Hi Benoit,

There are two checkout modes in TeamCity.

  • In case of server-side checkout server export the sources and pass them to an agent before each build. Since the sources are exported rather than checked out, no administrative data is stored in the agent's file system and version control operations (like check-in, label or update) cannot be performed from the agent.
  • In case of agent-side checkout the build agent will check out the sources before the build. It provides the ability to access version control-specific directories (.git, .hg); that is, the build script can perform VCS operations.

Please read more: https://confluence.jetbrains.com/display/TCD9/VCS+Checkout+Mode

0
Comment actions Permalink

Hi Alina, thanks for the answer.
Yes I saw that regarding Git on StackOverflow, I wasn't sure it applied to Mercurial (the docs seem to confirm it, thanks for the link!).
Unfortunately, I tried changing the setting on my configuration, and it didn't change anything, the .hg is still not here. I found it on the server though (just the .hg repo, without the actual working copy files... I supposed it's the intended behaviour).
Can this setting be changed after the fact like this? or do I have to create a new agent or VCS source or something in my configuration?

0
Comment actions Permalink

OK, so I created a new VCS root from scratch, and now I do have the .hg... and when I went back to the agent's directory, I saw I now had 3 repos! the original one without the .hg, and 2 new ones with the .hg.
I think I figured out what happened: when I changed the settings of the existing one, it created a new directory but didn't change the existing one, so I didn't notice it.

0
Comment actions Permalink

Benoit,

Sorry for delay. Yes, you are right. The checkout directory is changed if the VCS settings are changed. Please read more here: https://confluence.jetbrains.com/display/TCD9/Build+Checkout+Directory

0
Comment actions Permalink

Ah thanks for the link (docs are very deep so I'm still figuring my way around them ;)), that answer another question I had: sometimes my checkout directory is just wiped, which is a pain because it's very big (10 GB), and takes forever to rebuild from scratch (it's a Unity project so it has to build the Library etc).

So apparently this is by design (Automatic Checkout Directory Cleaning) but I don't really understand how to edit the parameter. Is there a way to view/edit all the current parameters that don't have a specific UI page?
I did this, but it feels a bit like a shot in the dark:
Capture_d'écran_060815_094634_AM.jpg

0

Please sign in to leave a comment.