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

  • Home
  • SEARCH
  • 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 6030535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:03:03+00:00 2026-05-23T05:03:03+00:00

branching out – [default]$ hg branch talks [talks]$ <… some commits …> [talks]$ hg

  • 0

branching out –

[default]$ hg branch talks
[talks]$ <... some commits ...>
[talks]$ hg update default

merging back –

[default]$ hg merge talks
3 files updated, 0 files merged, 0 files removed, 0 files unresolved

pushing to remote repo –

[default]$ hg commit -m "merging talks to default"
[default]$ $ hg push
abort: push creates new remote branches: talks!
(use 'hg push --new-branch' to create new remote branches)

Further investigation revealed that remote repo doesn’t want me to have multiple heads at the remote end. But I just did a merge to merge the two heads into one, isn’t it?

The graph from hg serve also seems to agree with me (I hope)
enter image description here

However, I also see two heads from hg heads

[default]$ hg branches
default                        9:85752ecd6326
talks                          8:2b00714d76d5 (inactive)
  • 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-23T05:03:03+00:00Added an answer on May 23, 2026 at 5:03 am

    I’m guessing you’ve misunderstood the branch feature. You’ve just created a branch who’s name will live forever in the repository. I suspect you didn’t really want to do this. You might want to investigate the bookmarks feature for local branches that don’t end up with names that live forever in the repository.

    Mercurial balks at pushes that add new global branch names to the repository being pushed to because that’s so very rarely what you really want to do. hg push --new-branch will tell Mercurial that yes, you really mean to do that.

    The two heads you’re seeing are misleading. Notice how one head is listed as ‘(inactive)’. That just means it’s the last change on the global branch, but not an actual head. You frequently want to see the heads of branches, even if those heads actually have children and are not really heads.

    As a small aside… I wrote the code that added that feature to the ‘heads’ command awhile back. 🙂

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

Sidebar

Related Questions

I was trying out branching. First i switched to the branch and then now
My motivation for trying out git-svn is the effortless merging and branching. Then I
I was overseeing branching and merging throughout the last release at my company, and
When we do our branching and merging with svn, we always have the same
I've been reading up on branching/merging with Subversion 1.5 using the excellent and free
I've read the Basic Branching and Merging section of the Git Community Book. So
I'm new to TFS (and branch/merge style source control). I've been reading through the
We are branching out beyond the development team and trying to get other groups
I am trying to work out how to use the Branch-per-feature approach in mercurial
I have a directory under subversion control. I created a branch out of it

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.