Search code examples
mercurialteamcitytortoisehgrecover

how to run hg recover command on a remote repository


I am getting the following error while running build in teamcity.

Failed to collect changes, error: '"C:\Program Files\TortoiseHg\hg.exe" --config ui.interactive=False pull https://test:******@hg.myrepo.co.uk/terriff' command failed.
stdout: pulling from https://test:***@hg.myrepo.co.uk/terriff
searching for changes

stderr: abort: abandoned transaction found - run hg recover!

I already tried to delete the build directories on agent machines but still getting same error. Also tried to run hg recover command but it says repository is not local. Please guide how to fix this error.


Solution

  • Yeah, that command will have to be run on the remote host (for example, via a shell).