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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:50:06+00:00 2026-05-29T03:50:06+00:00

I been happily using submodules to track all the libraries my project depends from.

  • 0

I been happily using submodules to track all the libraries my project depends from.
The thing is I’m using a library called core-plot that only has a public mercurial repository.
I can probably mirror it in a readonly Git repository, but is this the best option I got?
I had seen there is modules in Mercurial to track things in Git. Someone know if the other way around exists?

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

    Using git-hg.

    First, make sure there is a (non-Mercurial) git submodule under your main repository. If you don’t have other submodules yet, just create a dummy submodule for some library other than core-plot, for instance:

    main-repo $ git submodule add https://repo.url.com/repo.git repo
    

    Second, clone the core-plot library into some directory.

    main-repo $ git-hg clone  https://code.google.com/p/core-plot/ core-plot
    

    Add the new repo to the submodule list.

    main-repo $ git submodule add ./core-plot core-plot
    main-repo $ git commit -am "added core-plot submodule"
    

    From now on, any clone from this repo will pull both repositories. (After submodule init and update).

    Some problems I found out so far are:

    • If you push to a bare, then the repo link and the directory will be created in the bare, but the repository will not be cloned inside it and others pulling from that bare will not be able to get the core-plot lib.
    • If core-plot needs to be updated the one with the git-hg will have to git-hg pull.

    The converse question git submodule from Hg repo? is also asked on StackOverflow. The best answer mentions projects hg-git and git-hg. Another related converse question is, How to deal with Git submodules on a repo that is converted to Mercurial.

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

Sidebar

Related Questions

I am writing a .net 2.0 website project and had been happily using SquishIt
For some time now I've been happily using dlmalloc for a cross-platform project (Windows,
I've been very happily using PredicateBuilder but until now have only used it for
I've been using XPath with Selenium quite happily and even using getEval with a
I've been using Scala 2.8RC1 and Scala Eclipse plugin for 2.8 RC1 happily for
I have been happily using HgSubversion for awhile and today I forgot to add
I have been happily using VS 2010 for several weeks without any performance problems.
I've been happily using the error suppression operator on my PHP dev setup. But
This may be somewhat obscure but I've been happily using Eclipse + Perfoce/P4WSAD for
I've been writing an ActiveX plugin for IE using .NET. While I've happily got

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.