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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:53:55+00:00 2026-06-05T04:53:55+00:00

Is there a problem with Mercurial’s guide for fixing case-folding collisions or is there

  • 0

Is there a problem with Mercurial’s guide for fixing case-folding collisions or is there a problem with the way I am implementing the solution.

The solution as provided on the Mercurial wiki is as follows:

hg clone -U repo repair
cd repair

hg debugsetparents <bad revision>
hg debugrebuildstate 

At this point, Mercurial will think you have the bad revision checked
out and all the files are missing (status ‘!’). To fix the repo, we
simply have to do:

hg rm -A <file causing the collision> 

Now hg st should show the troublesome file in state ‘R’ and all other
files in state ‘!’. Now we can check in our fix:

hg ci -m"fix case collision" 

To get all our files back, we just check out again:

hg co tip

The problem files are: SomeFile.bash and Somefile.bash. I originally had Somefile.bash and I would like it to now be SomeFile.bash. Also to note, version 157 is happy, no collision, but version 158 is where I have introduced the collision. The head of the repository is currently at revision 160.

I have implemented this solution as follows:

hg clone -U my-repo-url repair
cd repair
hg debugsetparent 160
hg debugrebuildstate
hg status (reveals that everything is 'missing' (!))
hg rm -A Somefile.bash (responds that SomeFile.bash has been removed, notice case change)
hg ci -m "Fixed the collision... I hope."
hg co tip

hg update -C tip

According to the guide, this should have removed the case-folding collision and brought the rest of the missing files back, yet another hg status reveals that everything is still missing (!).

Edit: By appending that last command (the update) to the existing commands, I was able to recover the missing files which solved the remainder of the problem.

Note: I had to use the most recent ‘problem’ version for <bad revision> to fix this problem (that was 160 in my case).

  • 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-06-05T04:53:57+00:00Added an answer on June 5, 2026 at 4:53 am

    Try

    hg update -C tip
    

    That should bring the files back. If not, try reverting everything:

    hg revert -r tip -a
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicates: Is there a problem that has only a recursive solution? Can every
Is there a way to ask Mercurial to read most/all of the commands, options,
Problem There are data gaps that need to be filled. Would like to avoid
Problem: There are a lot of different databases, which is populated by many different
is there any problem to install different oracle 11g versions. I mean if I
Is there a problem with this type of implementation to wait for a batch
Is there a problem to using javascript for styling content? My website requires javascript.
Is there significant problem, if I write the code for embedded linux system using
Consider this problem: There's a square grid defined, each tile being either passable (1)
Consider the following problem: There are N coins numbered 1 to N. You can't

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.