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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:32:21+00:00 2026-05-28T01:32:21+00:00

Currently I have two branches in a Mercurial repository. One the default branch where

  • 0

Currently I have two branches in a Mercurial repository. One the “default” branch where I do most of my development and another a “production” one where the code that is currently live goes.

My question is how do I “merge” my default branch with the production one.

  • 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-28T01:32:22+00:00Added an answer on May 28, 2026 at 1:32 am

    You do

    $ hg update production
    $ hg merge default
    

    to bring in the new stuff from default into the production branch. You’ll have to resolve any merge conflicts at this point. There is no chance of data loss since you are working with committed changes. You can abort the merge with hg update -C and you can re-do the merge of a file foo.c with

    $ hg resolve foo.c
    

    When you’re satisfied with the merge, you run

    $ hg commit
    

    to create a merge changeset that describes how the two branches should be merged.

    There are many tutorials on this, for example:

    • Mercurial wiki
    • Task based development
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running SourceSafe and I have two branches of my code. I'm currently using
I (currently) have two forms, one that needs to call the other. In other
I have two branches namely master and development in a GitHub Repository. I am
I currently have two SQL commands. One retrieves a list of unique IDs from
I currently have two panels within another large panel. The left panel is for
I currently have two Ruby selects: one for categories and the other one for
I currently have two unrelated MVC3 projects hosted online. One works fine, the other
I have two branches one is called master the other is called dev I
I have two branches: master and dev I want to create a "feature branch"
I have two remote branches, grape and master. I'm currently on grape. Now I

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.