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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:08:22+00:00 2026-06-15T09:08:22+00:00

We have a project which has data and code, bundled into a single Mercurial

  • 0

We have a project which has data and code, bundled into a single Mercurial repository. The data is just as important the code (it contains parameters for business logic, some inputs, etc.) However, the format of the data files changes rarely, and it’s quite natural to change the data files independently from the code.

One advantage of the unified repository is that we don’t have to keep track of multiple revisions: if we ever need to recreate output from a previous run, we only need to update the system to the single revision number stored in the output log.

One disadvantage is that if we modify the data while multiple heads are active, we may lose the data changes unless we manually copy those changes to each head.

Are there any other pros/cons to splitting the code and the data into separate repositories?

  • 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-15T09:08:24+00:00Added an answer on June 15, 2026 at 9:08 am

    Multiple repos:

    • pros:

      • component-based approach (you identify groups of files that can evolve independently one from another)
      • configuration specification: you list the references (here “revisions”) you need for your system to work. If you want to modify one part without changing the other, you update that list.
      • partial clones: if you don’t need all components, you can only clone the ones you want (doesn’t apply in your case)
    • cons

      • configuration management: you need to track that configuration (usually through a parent repo, registering subrepos)
      • in your case, data is quite dependent on certain versions of the projects (you can have new data which doesn’t make sense for old versions of the project)

    One repo

    • pros
      • system-based approach: you see your modules as one system (project and data).
      • repo management: all in one
      • tight link between modules (which can makes sense for data)
    • cons
      • data propagation (when, as you mention, several HEAD are active)
      • intermediate revisions (not to reflect a new feature, but just because some data changes)
      • larger clone (not relevant here, unless your data include large binaries)

    For non-binary data, with infrequent changes, I would still keep them in the same repo.

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

Sidebar

Related Questions

I have a project which has some lib's associated with it (in Build Path).
I have a project which has a set of binary dependencies (assembly dlls for
I have a project which has shared functionality between three other projects and have
I have one project which has RIAService with entity framework that is referenced to
ok i have a project which has many gridview in its pages... now i
I have a project directory which has an .acignore file containing: out/* The project
i have a project table which has a image_id field and a newsimage_id field.
i have an android project which has a lot of classes I've built. i
i have a java ee project which has a text file that uses a
I have an ASP.NET project which has already some custom fields in it's web.config

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.