1
我們正在遷移到Mercurial,當然,我們需要更新我們的CruiseControl.Net構建過程以使用它來代替Visual SourceSafe。Mercurial和CruiseControl.Net的「交叉分支」錯誤
我們更新了與以下塊CruiseControl的配置文件:
<sourcecontrol type="hg" autoGetSource="true">
<executable>C:\Program Files\Mercurial\hg.exe</executable>
<repo>https://bitbucket.org/GTSDevs/galaxy</repo>
<workingDirectory>C:\Cruise Control\Releases\5.0.0\source</workingDirectory>
<branch>master</branch>
<multipleHeadsFail>false</multipleHeadsFail>
<tagOnSuccess>true</tagOnSuccess>
<timeout units="minutes">20</timeout>
</sourcecontrol>
,直到我們在它的一個分支推一些代碼來我們的倉庫這行之有效。現在,我們的構建失敗,出現以下錯誤:
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: abort: crosses branches (merge branches or use --clean to discard changes)
. Process command: C:\Program Files\TortoiseHg\hg.exe update -r master --noninteractive
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial.GetSource(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
所有我能找到的錯誤的信息,看來是關於做一個update
。
任何人都可以幫助過去嗎?
我們應該在ccnet.config文件中做更多的事情來支持Mercurial嗎?
添加到水銀源控制框它是一個你添加的命名分支? – 2011-02-05 22:48:56