gpt4 book ai didi

mercurial - CruiseControl.NET 的过滤源代码控制提供程序在使用 Mercurial 时未检测到修改

转载 作者:行者123 更新时间:2023-12-03 07:58:00 25 4
gpt4 key购买 nike

我们正在切换到 Mercurial。我们的存储库有许多不同的项目,因此我们使用过滤源代码控制,以便只有对项目文件的更改才会触发构建。我在 ccnet.log 中看到 CruiseControl 正确地从 Mercurial 获取修改列表,但它总是报告“未检测到修改”。我想我可能指定了错误或不正确的模式。

这是我在日志中看到的:

2010-08-12 18:25:41,305 [BuildAndTools:DEBUG] Modification Modification: (Type=Changeset,FileName=Build/App.targets,FolderName=,ModifiedTime=8/12/2010 6:16:42 PM,UserName=user,ChangeNumber=5640629ec7b5,Version=5640629ec7b5,Comment=Making a change to see if it triggers a build.,Url=,IssueUrl=,EmailAddress=user@example.com) was not accepted by the filter specification.
2010-08-12 18:25:41,305 [BuildAndTools:INFO] No modifications detected.

这是路径过滤配置:

<sourcecontrol type="filtered">
<dynamicValues />
<exclusionFilters />
<inclusionFilters>
<pathFilter>
<caseSensitive>False</caseSensitive>
<pattern>Build\**\*.*</pattern>
</pathFilter>
</inclusionFilters>
</sourcecontrol>

我需要做什么才能让 CruiseControl.NET 看到修改?

更新:此问题已在 CruiseControl.NET 1.6 版中修复。

最佳答案

原来这是 Mercurial 源代码控制插件中的一个错误。它通过变更集而不是文件获取更改(变更集中的所有文件都分组到一个空格分隔的列表中)。这不是经过过滤的源代码控制提供程序所采用的格式,因此它永远不会注意到任何修改。

我解决了这个问题,创建了一个 JIRA item to track the issue ,并附上我的代码更改。

关于mercurial - CruiseControl.NET 的过滤源代码控制提供程序在使用 Mercurial 时未检测到修改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3498425/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com