开发者

How to reset a TeamCity build after stripping Hg changesets?

I 开发者_如何学JAVArecently needed to strip some changesets from my Mercurial repository. I then tried to run a build from TeamCity but got the following error message:

[09:44:25]: Updating sources: agent side checkout... (16s)

[09:44:42]: [Updating sources: agent side checkout...] Failed to perform checkout on agent: 'cmd /c hg update -C -r 507b8c8f4cdb' command failed. stderr: abort: unknown revision '507b8c8f4cdb'!

The error makes sense since the changeset no longer exists in the repo, but I don't know how to reset TeamCity to pull from the new tip. I'm guessing that I could copy the TeamCity build configuration to a new build, but then I'd lose my history.

Is this possible? Or have I corrupted my TeamCity build and need to start up a new one?


Add a new commit to the repository so that the tip revision gets updated.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜