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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:07:07+00:00 2026-05-21T03:07:07+00:00

First, I am new to Mercurial and distributed source control systems as a whole.

  • 0

First, I am new to Mercurial and distributed source control systems as a whole. Generally I have used perforce, so I’m going to use perforce terminology in order to keep what I’m trying to say clear.

My issue is that I’m making a game based on an open source engine, and that engine has regular code drops. However, I am also making some changes to the engine code myself, in my own depot. I need to set things up so that I can easily merge changes from code drops in to my own code, without losing my changes, and without having to examine every single file manually.

In Perforce, what I’d do is have a branch for just the engine code, and then my main branch, and all engine code drops would be submitted to the engine code branch, and then I would integrate the engine code branch in to the main code branch. Resolve problems, submit, and voila.

I feel like this is pretty close to how it would work in Mercurial, only I’m missing some minor piece of understanding to help me figure it out. First, I’m not sure if my engine code should be in a branch, or a completely separate repository. And even if I did know that, I’m not clear as to how I’d move code back and forth and keep them properly separate.

Sorry if this is kind of a kitchen sink question. I tend to learn by tossing myself in the deep end.

  • 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-21T03:07:08+00:00Added an answer on May 21, 2026 at 3:07 am

    It sounds like you could do almost exactly the same thing you do with perforce using named mercurial branches in a single repository:

    hg branch engine-code
    hg ci -m "created engine code branch"
    # add the engine code drop
    hg ci -m "new drop"
    hg update default
    hg merge engine-code # merges engine-code drop into your default branch
    # test the result of the merge, then commit it:
    hg commit -m "merged new engine drop"
    

    That’s the initial setup. After that, when you want to add a new drop it’s similar:

    hg update engine-code
    # add the new drop
    hg ci -m "nother new drop"
    hg update default
    hg merge engine-code
    hg ci -m "merged another new engine drop"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First see my Source Code: WebClient client = new WebClient(); String url = http://localhost;
first of all I'm totally new to FAST but I already have a couple
I have started a new project on Google code, and I chose Mercurial as
I've recently started using mercurial (it's actually my first experience with version control) but
I'm having two DateTime -objects: $start = new DateTime('first thursday of June 2012'); $end
Consider a string array shaped like this: string[] someName = new string[] { First,
First of all i'm new in here and new with csharp. just exhausted while
First off I am very new to Objective C and iPhone programming. Now that
First off I am still new to objective-c and still trying to learn as
First, new to Cocoa and Objective-C, so my apologies if this is unclear and

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.