由于分支上设置的更改,CCNET Trunk 开始构建

发布于 2024-09-19 02:30:42 字数 493 浏览 5 评论 0原文

我将 CCNET 与 Mercurial 结合使用。我有一个项目,有一个分支和一个头。它们都在 CCNET 中配置。该分支运行良好,仅当该分支发生更改时才开始构建。

每次检查修改时,主干(称为默认)都会开始构建,因为它“看到”分支的更改集。它不会检查它们(很好的想法),但它每次都在不断构建。

如何避免主干项目看到分支的变更集?

http://repository/hg/hgwebdir.cgi/projectsname/ D:\projects\projectsname <分支>默认

I am using CCNET in combination with Mercurial. I have a project that got a branch and a head. they are both configured in CCNET. The branch is running fine, it only start building when there are changes on this branch.

The trunk (called default) starts building every time modifications are checked, because it "sees" the change sets of the branch. It doesnt check them out (good think), but it keeps building every time.

How can I avoid the trunk project seeing the changesets of the branch?

<sourcecontrol type="hg">
<repo>http://repository/hg/hgwebdir.cgi/projectsname/</repo>
<workingDirectory>D:\projects\projectsname</workingDirectory>
<branch>default</branch>
</sourcecontrol>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

岛徒 2024-09-26 02:30:42

听起来您发现了一个 CCNET bug,但以防万一以后有帮助,如果您希望 CCNET 仅拉取特定的命名分支,您可以使用此表示法作为您的存储库 URL:

<repo>http://repository/hg/hgwebdir.cgi/projectsname/#branchname</repo>

来自 hg help urls :

# 后的可选标识符
指示特定的分​​支、标签或
从远程使用的变更集
存储库。另请参阅“hg 帮助”
修订'.修订'。

当然,这是假设 CCNET 正在幕后使用 Mercurial,但这是一个相当安全的赌注。

这样做将导致您的 CCNET 仅克隆并跟踪具有该分支名称(仍可能包含多个头)的变更集。

It sounds like you found a CCNET bug, but in case it's helpful later, if you want CCNET pulling down only a specific named branch you can use this notation for your repo URL:

<repo>http://repository/hg/hgwebdir.cgi/projectsname/#branchname</repo>

Which comes from hg help urls:

An optional identifier after #
indicates a particular branch, tag, or
changeset to use from the remote
repository. See also 'hg help
revisions'.revisions'.

That assumes, of course, that CCNET is using mercurial under the covers, but that's a pretty safe bet.

Doing that will cause your CCNET to only clone down and track changesets with that branch name (which still could include multiple heads).

亣腦蒛氧 2024-09-26 02:30:42

嗯,我看起来这是一个 CCNET bug,我在默认情况下添加了一个变更集,现在它每 30 秒停止构建一次

Hmm I looks like this is a CCNET bug, I added a changeset on the default and now it stopped building every 30 seconds

花开柳相依 2024-09-26 02:30:42

该错误目前正在修复中
http://groups.google.com/group/ccnet-devel/t/fe3f768a346a3796

所以任何测试方面的帮助都是值得赞赏的:-)

this bug is currently being worked on
http://groups.google.com/group/ccnet-devel/t/fe3f768a346a3796

so any help with testing is appreciated :-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文