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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:22:10+00:00 2026-05-29T08:22:10+00:00

Using mercurial, I’ve run into an odd problem where a line from one committer

  • 0

Using mercurial, I’ve run into an odd problem where a line from one committer vanished at some point in the timeline and I can’t explain why it is.

Log looks like this:

changeset:   172:xyz123
parent:      76:pqr345
user:        barry baggings
date:        Mon Jan 16 0:12:43 2012 +0000
summary:     blah blah blah

changeset:   171:opq123
parent:      165:abc234
user:        mary moggings
date:        Mon Feb 01 1:12:41 2012 +0000
summary:     naw naw naw

Running: hg diff -r 171 -r 172 gives this for abc.py (header omitted):

print "context line1"
- print "i need this line!"
print "context line2"

The mod in question print "i need this line! was definitely introduced in 171:opq123 but it’s gone again in 172:xyz123,

But a diff between 76 and 172 shows no mods to abc.py! How can Barry leapfrog Mary’s change like this?

Am I just misunderstanding how all this works? I have a pretty decent background in things like CVS and SVN but DVCSs make my head hurt sometimes… can someone explain?

I am slightly suspicious that it’s because we’re on mercurial 1.7.1 – could it be a bug?

  • 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-29T08:22:11+00:00Added an answer on May 29, 2026 at 8:22 am

    These are separate heads, with 172 not based on 171. The graph, as produced if you have the graphlog extension enabled and run hg glog, or as you can see visually from hgweb if you run hg serve, open it in a browser and click on the “graph” link, shows it perhaps more clearly than the “parent” values of the changesets.

    o    changeset:   172:xyz123
    |    parent:      76:pqr345
    |    user:        barry baggings
    |    date:        Mon Jan 16 0:12:43 2012 +0000
    |    summary:     blah blah blah
    |    
    | o  changeset:   171:opq123
    | |  parent:      165:abc234
    | |  user:        mary moggings
    | |  date:        Mon Feb 01 1:12:41 2012 +0000
    | |  summary:     naw naw naw
    | |
    

    This shows clearly that changeset 172 is not based on changeset 171.Thus in comparing them, the change can have taken place elsewhere. You’re not comparing an ancestor and descendant, you’re comparing cousins of some degree.

    So, while you introduced it in 171, because 172 is not based on 171, it doesn’t get the addition of the line. A merge is in fact what you need to get the change, to make a changeset which is based both on 171 and 172 (and their ancestors, until they converge).

    You may well have more heads that you want merged in; you can use hg heads to look at them. hg serve can also be very helpful for comprehending such things.

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

Sidebar

Related Questions

I've been using Mercurial for some development lately and have been loving it. I'm
I have a long standing problem: at work we're using mercurial as a DSCM,
Problem on WindowsXP (likely will happen on all Win installs), first time using Mercurial.
Using Mercurial, we can commit one file by using hg commit file.rb or 1
I am currently using Mercurial via Tortoise Hg for some of my side projects.
I'm using Mercurial for personal use and am conteplating it for some distributed projects
I am using Mercurial. I have some uncommitted changes but I am on the
I'm researching using Mercurial for our companies source control system. One immediate requirement that
we are using mercurial as source control in one of our projects. We are
I'm using Mercurial and I've got into a terrible mess locally, with three heads.

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.