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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:37:10+00:00 2026-05-21T06:37:10+00:00

>hg branches default 210:87d8059250ce and two heads hg heads changeset: 1:87d8059250ce tag: tip user:

  • 0
 >hg branches
 default                      210:87d8059250ce

and two heads

hg heads
changeset:   1:87d8059250ce
tag:         tip
user:        me
date:        Tue Apr 12 18:33:24 2011 -0700
summary:     old one

changeset:   2:fa5abf8b578a
user:        me
date:        Tue Apr 12 18:13:19 2011 -0700
summary:     new one

I would like to close head 1 and only use head 2. how do I do this? How can I find out which branch this is associated with?

I’ve seen this method:

 hg up -r 1
 hg ci --close-branch

but then when I go to push, it complains “did you forget to merge? use push -f to force”. I’m not sure why it would ask me that, because I would like to override the changes I just pulled with this new head… rev 2.

Let me know how to do this! thank you!!!

  • 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-21T06:37:10+00:00Added an answer on May 21, 2026 at 6:37 am

    this answered it for me. thanks Mercurial: beheading a head

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

Sidebar

Related Questions

C:\Users\Itu\workspace\Compiler>hg branches default 13:aa6af82c5458 C:\Users\Itu\workspace\Compiler>hg heads changeset: 13:aa6af82c5458 tag: tip user: Itun date: Sun
We crated two branches from the trunk (using TortoiseSVN) ... branch USER and branch
My repository has only two branches: default and stable. I made a mess in
Let's say I have two branches named default and newfeature . I have a
I have two branches in mercurial.. default named |r1 |r2 |r3 -------- named branch
Let´s say I have two branches, default and mybranch, I would like to write
I have two branches at my local repository: default and s1 . At default
I have a repository which has two branches, default and BranchA . The graph
I have a mercurial repository with two branches (default and branch1) I have a
Possible Duplicate: HEAD and ORIG_HEAD in Git By default we see two branches in

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.