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 7692217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:48:08+00:00 2026-05-31T20:48:08+00:00

I am building an app where the commit push happens in the back ground.

  • 0

I am building an app where the commit push happens in the back ground. I am able to commit – push to remote server.
Now i am going to make my app do the commit – push asynchronously. So whenever i do a push in the command line i need to get a response (saying it is successfully pushed or not)
As of now this is the message for successful push

pushing to http://...
1 changesets found
remote:adding changesets
remote:adding manifests
remote adding file changes
remote added 1 changesets with 1 changes to 1 files

It would be really helpful if i got something like successful or failed or 0 / 1

One of my friends told me to run echo %errorvariable% immediately after you execute the push command
That is returning 0 for success (successful push or no changes) and -1 for error.
Is this correct?

  • 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-31T20:48:10+00:00Added an answer on May 31, 2026 at 8:48 pm

    Using the Windows command prompt, the command to echo the return code would actually be echo %errorlevel%. I just did a quick test and got three values of %errorlevel%:

    • Successful push returned 0
    • No changes to push returned 1
    • An error in pushing gave 255 (I pushed to a non-existent URL for this test)

    Depending upon how you launch Mercurial, you should be able to get access to the return code without doing echo %errorlevel%. You’d need to look into the documentation for the function that you are calling to launch it for details.

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

Sidebar

Related Questions

I'm building app in django which I want to deploy on aws ec2 server.
Im building an app using kohana. I need to be able to upload files
I'm building an app that needs to be able to extend facebook graph data.
I'm building app with boost.python. I want to make each cpp-module as a single
I've created a Codeplex site for an app I'm building and right now I
I am building an app that runs periodically and monitors server essentials (RAM, disk
I'm building an app that authors would (hopefully) use to help them, uh.. author
We're building an app that stores hours of operation for various businesses. What is
I am building an app that talks to an Access database via OleDB/Jet. There
I'm building an app in Ruby on Rails, and I'm including 3 of my

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.