Questions tagged [subrepos]

Mercurial can include other repositories in a checkout. These repositories are called subrepositories.

More information:

101 questions
9
votes
1 answer

How do I only commit a subrepo's changes?

I have a master repo, which has some changes I do not want to commit. I have a subrepo, which has changes that have already been committed. I want to commit the changes subrepo revision in my master repo, without committing the changes to the files…
Matthew Schinckel
  • 35,041
  • 6
  • 86
  • 121
8
votes
2 answers

Is the subprepos feature in Mercurial 1.4.x ready for production use?

I'd like to evaluate Mercurial for my working projects. But most of my projects very heavily rely on the presence of svn:externals-like support. I've searched over StackOverflow and googled for corresponding support in Mercurial. All I found is…
bialix
  • 20,053
  • 8
  • 46
  • 63
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
6
votes
1 answer

How can I tell, within a CMakeLists.txt, whether it's used with add_subdirectory()?

I have this code project can be built either independently or as a subproject of a larger repository (checking it our as a sub-repository). In the latter case, I have a top-level CMakeLists.txt for the main project which…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
6
votes
1 answer

Is DVCS (Mercurial) not for me?

I work in a company where we create a lot of small customer-specific applications. We are a few developers but most of the time there is only one developer per project. Customer1 ProjectX App Tests ProjectY App …
adrianm
  • 14,468
  • 5
  • 55
  • 102
6
votes
1 answer

Using a specific (git) branch in a mercurial subrepository

I have a mercurial project in which I would like to use jQuery-File-Upload. I added the following to my .hgsub file in order to create a subrepo for this plugin: public/assets/common/js/filedrop =…
nstCactus
  • 5,141
  • 2
  • 30
  • 41
5
votes
2 answers

How to make local clone without pulling subrepos again?

I often work with Mercurial by keeping a local store of my upstream clones, and then just cloning again locally for my actual working environment: $ cd /clones $ hg clone ssh://external-repo.example.com/some/repo/path/foo $ cd ~/Development $ hg…
Nick Bastin
  • 30,415
  • 7
  • 59
  • 78
5
votes
1 answer

Make .hgignore in a Mercurial repository available to all subrepos?

I have a Mercurial repository with several subrepos. Is there a possibility to only define a general .hgignore-File (e.g. to ignore object-files) both in the main repository and, optionally a specialized one in the sub-repositories? There is not…
glasflügel
  • 325
  • 2
  • 11
5
votes
1 answer

How to show progress of subrepository update?

I have a Mercurial repository that contains a SVN subrepository. During hg update Mercurial freezes during processing of .hgsubstate file. I understand that this is because Mercurial executes svn command in background that pulls correct revision of…
Michal Sznajder
  • 9,338
  • 4
  • 44
  • 62
5
votes
1 answer

Force Mercurial to always use --subrepos

Is it possible to configure Mercurial to always check subrepos? I'd like it enabled all the time without having to specify it on the command each time.
Mark Robinson
  • 3,135
  • 1
  • 22
  • 37
5
votes
3 answers

Using a git subrepo which has ANOTHER git subrepo in a mercurial repository, is this possible?

I have a mercurial repository, and have added without problems a git subrepo (hg 1.8). Problem is: this git subrepo has ANOTHER git subrepository inside itself and it isn't being pulled (it's in the git's subrepo .gitmodules file), unless I do a git…
5
votes
2 answers

Mercurial subrepositories - managing more complex dependency hierarchies

I have a master project that's using a fairly standard source tree approach + mercurial subrepositories. Master \lib - compiled binaries - things like log4net, AutoFac, etc \source - VS solution, one folder per project, etc \tools - stuff used…
Ethan J. Brown
  • 2,308
  • 3
  • 20
  • 27