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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:33:43+00:00 2026-05-31T01:33:43+00:00

First off, I would prefer not to check in the generated files at all

  • 0

First off, I would prefer not to check in the generated files at all but my manager insists. So, given those constraints I would like to create a mercurial “merge-patterns” that will always take “their files” in all directories named “generated” in my working repo. I have read the hgrc documentation and a related post and here is what I think it should look like:

[merge-patterns]
generated/** = internal:other #keep their files

And this is placed in my root .hg/hgrc file. When I run the hg update with the merge conflicts this is what I get:

> hg update
couldn't find merge tool internal:other #keep their files specified for generated/**
merging generated/file.sv

So I modified the “merge-patterns” to look like this:

[merge-patterns]
**/generated/** = internal:other #keep their files

And here is what I get:

> hg update
merging generated/file.sv

So, I no longer get the “couldn’t find merge tool internal:other” warning but it is still trying to merge the generated files.

Any ideas on how to get this to work?

Additional notes:

  1. We are using Mercurial version 1.7.5 as we were having problems with newer versions and subrepos.
  2. I am working with subrepos so here is what the structure of my main repo looks like:

enter image description here

  • 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-31T01:33:45+00:00Added an answer on May 31, 2026 at 1:33 am

    I believe the problem is simply the comment! Mercurial is searching for a tool named

    internal:other #keep their files
    

    and that’s unlikely to exist 🙂 Try moving the comment to a line above:

    [merge-patterns]
    # keep their files
    generated/** = internal:other
    

    I haven’t tested this out, but I believe you still need the first pattern you used — the warning went away with your second try because the pattern no longer matched inside the subrepo. Even when you start the merge from the top-level, the subrepos are merged as if hg merge was executed inside the subrepo.

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

Sidebar

Related Questions

first off this is a class assignment so i would appreciate help but just
First off: Everything works , but I would like to fine tune this a
First off all I know: Premature optimization is the root of all evil But
First off: I do not want to use JQuery, i know it would make
First off I would like to say, that I am not trying to hack
First off, let me start off that I am not a .net developer. The
First off, I would like to make a few points I believe to be
First off, I did look on google and stackoverflow, but nothing seem to really
First off, I'm not terribly experienced in XML. I know the very basics of
First off I would like to apologize beforehand, in case this turns out to

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.