Questions tagged [mercurial-subrepos]

Questions related to the subrepository feature in the Mercurial distributed version control system.

Questions related to the subrepositories feature in the Mercurial distributed version control system.

129 questions
28
votes
2 answers

How can I prevent mercurial from pushing subrepos?

In my repository I've added several sub-repositories for modules that I'm using. I'm always going to treat these subrepos as "pull only". I don't plan to make any changes to them but want to retain the ability to easily pull new changes if a new…
Soviut
  • 88,194
  • 49
  • 192
  • 260
17
votes
5 answers

Mercurial Subrepositories: Prevent accidental recursive commits and pushes

I work on a team where we have a code in a mercurial repository with several subrepositories: main/ main/subrepo1/ main/subrepo1/subrepo2/ The default behavior of Mercurial is that when a hg commit is performed in "main", any outstanding changes in…
davidg
  • 5,868
  • 2
  • 33
  • 51
12
votes
3 answers

Any way to pull/update all subrepos?

I'm looking into the viability of switching from svn to mercurial for my organization, but there's one hangup I can't seem to find a solution for. Is there any way to pull and update a repo and all subrepos without manually pulling and updating each…
carpat
  • 861
  • 10
  • 25
11
votes
2 answers

How to use mercurial subrepos for shared components and dependencies?

We develop .NET Enterprise Software in C#. We are looking to improve our version control system. I have used mercurial before and have been experimenting using it at our company. However, since we develop enterprise products we have a big focus on…
10
votes
1 answer

How to deal with Git submodules on a repo that is converted to Mercurial

Here goes: $ cat .gitmodules [submodule "utils/external/firepython"] path = utils/external/firepython url = git://github.com/darwin/firepython.git [submodule "utils/external/textile"] path = utils/external/textile url =…
tshepang
  • 12,111
  • 21
  • 91
  • 136
10
votes
6 answers

hg to git conversion and subrepo merge

Despite involving two subparts, I'm asking this as a combined question because the way it's broken down into parts isn't what's important. I'm open to different ways to achieve what I want as long as the end result retains all the meaningful history…
R.. GitHub STOP HELPING ICE
  • 208,859
  • 35
  • 376
  • 711
9
votes
1 answer

How to fix a Mercurial repo that fails updating because points to missing revision in subrepo?

Our mercurial repository gets stuck when trying to update to an old branch which has a subrepo / revision pair that doesn't exist anymore. abort: unknown revision '22e9bb6a6cd98be85b995f632b2f72d6298f9354'! Is there any way to tell Mercurial to…
Pol
  • 3,848
  • 1
  • 38
  • 55
8
votes
1 answer

How to make Mercurial subrepository to always point to a certain changeset or tag?

I am curious if this is possible with Mercurial. I'd like to have a subrepos in a project that are always fixed to the manually specified changeset, or better yet - tag. Basically what I am trying to achieve is to have a core system in the main repo…
Alex N.
  • 14,805
  • 10
  • 46
  • 54
8
votes
2 answers

Can I nest subrepos in Mercurial?

I am having trouble setting up a project in Mercurial with subrepos. Goal: I want to set up the structure like so: -- Build_Repo (this repo will be used to track dependencies) -- Subrepo_A (this is the main source) -- Modules (Part of…
8
votes
4 answers

Can one Mercurial repository live inside another Mercurial repository?

Can one hg repo live inside another hg repo on my local file system? I am pulling down the bitbucket wiki for 'sandbox', and I want to know if this should be placed in repos/sandbox/wiki or repos/sandbox-wiki. Is the former okay to do? Edit: See…
Robert Claypool
  • 4,262
  • 9
  • 50
  • 61
8
votes
1 answer

How to fix Mercurial stuck on Git subrepo push?

I have root Mercurial repo (web site). I clone WordPress from GitHub mirror into /wp subdirectory. Since I want very specific (stable) version of WP, but no ongoing development I do git checkout 3.4.1 (where 3.4.1 is tag). I setup it as subrepo in…
Rarst
  • 2,335
  • 16
  • 26
7
votes
2 answers

Updating to old Mercurial revisions with subrepos that have moved

Our project has a couple of remote subrepos in it, and their addresses have recently moved from http://host/path to http://other_host/path. How can one go back to a revision from, say, last month, where Mercurial thinks the subrepo can be found at…
moswald
  • 11,491
  • 7
  • 52
  • 78
7
votes
1 answer

Managing a complex repository structure - module dependencies and shared code

(The following is a kind of a "theoretical MCVE" of the kinds of complexity I'm encountering in organizing source code I'm working on. You can treat it as a concrete problem and that would be good, or you can refer to the general concerns it brings…
6
votes
1 answer

Recursively tag all Sub-Repositories using Mercurial

Is it possible to tag the main parent repository and have the tag added to all of the sub-repositories too? Without this if I were ever to remove a project as a sub-repository and access it on its own it will have lost all tags information since…
DaveJohnston
  • 10,031
  • 10
  • 54
  • 83
6
votes
1 answer

Mercurial: Windows script to add subrepository automatically

RyanWilcox had posted a script at here, that can use the following command to add subrepository automatically: $ cd $TOP_OF_HG_PROJECT $ addsubrepo.sh $URL_TO_HG_PROJECT relative_path/you/want_to/put_the_subrepo How to translate it into Windows…
user593358
1
2 3
8 9