Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7446211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:15:51+00:00 2026-05-29T12:15:51+00:00

I have CruiseControl.NET configured using the Mercurial source control block. When I first executed

  • 0

I have CruiseControl.NET configured using the Mercurial source control block. When I first executed the build, the code was downloaded from my Kiln repository and the build went off without a hitch. However, every subsequent build fails, and I believe the reason is because hg.exe pull is returning an “error” code of 1 indicating there were no changes detected. I verified the return code by using Process Explorer. The thing is, CruiseControl.NET is apparently treating this as a failure condition but I’d prefer if it simply did not treat the attempt as a build. It’s been my experience that with other source control systems, CruiseControl.NET will simply do nothing if there are no changes in the repository.

[Project:DEBUG] Starting process [C:\Program Files\Mercurial\hg.exe] in working directory [D:\Working] with arguments [pull https://urlredacted]
[Project:DEBUG] Not setting PriorityClass on [C:\Program Files\Mercurial\hg.exe] to default Normal
[10:DEBUG] [Project C:\Program Files\Mercurial\hg.exe] standard-error stream closed -- null received in event
[9:DEBUG] [Project C:\Program Files\Mercurial\hg.exe] pulling from https://urlredacted
[6:DEBUG] [Project C:\Program Files\Mercurial\hg.exe] process exited event received
[9:DEBUG] [Project C:\Program Files\Mercurial\hg.exe] searching for changes
[9:DEBUG] [Project C:\Program Files\Mercurial\hg.exe] no changes found
[9:DEBUG] [Project C:\Program Files\Mercurial\hg.exe] standard-output stream closed -- null received in event
[Project:WARN] Source control failure (GetModifications): Source control operation failed: . Process command: C:\Program Files\Mercurial\hg.exe pull https://urlredacted

My question is, is there a CruiseControl.NET configuration I can use to get it to ignore the build attempt if hg.exe pull results in a 1, or am I going to have to go modify CruiseControl.NET code?

I’m using CruiseControl.NET 1.6 and Mercurial 2.1.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:15:51+00:00Added an answer on May 29, 2026 at 12:15 pm

    The problem is that Mercurial 2.1 changed the return code for hg pull when no changesets were pulled. That is a backwards incompatible change and scripts and tools will now have to be updated to take this into account.

    I expect the next version of CruiseControl.NET to take this into account. In the mean time, a small batch file can be used (as you suggest in your comment).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Mercurial source control block in CruiseControl.NET, and I have it set
We have setup Cruise Control.Net to build .Net projects from source control. Problem is
I currently have CruiseControl.NET set up with SVN to automatically grab the code source
I have a website project that I want to build using CruiseControl.net. On one
I have CruiseControl.NET setup with SVN source control. I have all my projects working
I have recently upgraded from CruiseControl .Net 1.4.3.x on our build machine to the
I have a VS 2008 web forms project and I'm using CruiseControl.net to build
I have CruiseControl.net running Visual Studio (2005/2008 - using devenv.com) as we need to
I have a build server running CruiseControl.NET. It works well for the 7 projects
I have just set up cruise control.net on our build server, and I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.