Cannot get Mercurial plugin to work

can't figure out how to get the mercurial plugin to work. Followed instructions from

In teamcity UI I see:

: bt5
: Checking for changes
: Cannot resolve current sources revision. Check version control settiings
: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
: Checkout directory: C:\hg\yoolk
: Clean build enabled: removing old files from C:\hg\yoolk
: Getting project sources
: Loading changed files from server...
: Error while applying patch: Cannot resolve current sources revision. Check version control settiings
: Build finished

Log shows an expection:

DEBUG - jetbrains.buildServer.VCS - Cannot load vcs changes: jetbrains.buildServer.util.FileUtil.getCanonicalFile(Ljava/io/File;)Ljava/io/File;
java.lang.NoSuchMethodError: jetbrains.buildServer.util.FileUtil.getCanonicalFile(Ljava/io/File;)Ljava/io/File;
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.Settings.getDefaultWorkDir(
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.Settings.getWorkingDir(
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.syncClonedRepository(
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.getCurrentVersion(
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrentVersion(
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$
at java.util.concurrent.Executors$
at java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$

I'm running TeamCity Professional Version 3.1.1 (build 6828) , do I need to update that maybe? Or can I just get the package with this missing method or what might be wrong?

THanks a lot for any help,


Thanks a lot Pavel, that fixed it, you rock!


We will appreciate your feedback about this plugin.

Pavel Sher


Hi all !
          I am new  to use the team city, I have a maven project to be checked for changes  from mercurial repo server, update changes, then build the project.

I am  successfull with building the maven project without configuring  mercurial in it.

But if i configure the mercurial & if i click test  connection ... it keeps going..... loading hours together. bt not gets  finished.

so  i cancelled, saved and clicked run button, then too it keeps running nt  ending.

there  is no problem with mercurial server n all bcoz i am using mercurial  through client for months with no problem.

I also tried with cvs as the vcs  its working bt Mercurial alone is problematic.

I am using tc 5.0.2.

Kindly help  me

I  hv attacted screen shot of cfg screens.


Please sign in to leave a comment.