Questions tagged [subrepos]

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

More information:

101 questions
5
votes
1 answer

Can I commit changes to multiple mercurial subrepos to a new named branch?

I have a mercurial repository with multiple sub repositories inside it. The repository has a visual studio solution containing projects in the repository and the subrepository. Suppose I want to implement a new feature that will require changes to…
Danny Jones
  • 1,648
  • 1
  • 10
  • 10
5
votes
3 answers

Mercurial repo inside a repo

Is it possible to create a mercurial repository inside an existing mercurial repository? The idea is to handle subdirectories of a repository as different repositories, how do you do that? I'm not talking about subrepos (at least, if I understood…
AkiRoss
  • 11,745
  • 6
  • 59
  • 86
5
votes
1 answer

Mercurial Remote Subrepos

I'm trying to set up my Mercurial repository system to work with multiple subrepos. I've basically followed these instructions to set up the client repo with Mercurial client v1.5 and I'm using HgWebDir to host my multiple projects. I have an…
Travis Gockel
  • 26,877
  • 14
  • 89
  • 116
5
votes
2 answers

Using subrepositories with bitbucket and ToritoiseHg

I have subrepository structure as following in TortoiseHg: /MainFolder/ /MainFolder/SubFolder1 /MainFolder/SubFolder2 MainFolder is a private repository on bitbucket SubFolder1 is a private repository on bitbucket SubFolder2 is a private repository…
4
votes
2 answers

How to store my binary assets with Mercurial?

I'm starting a game development project and my team and I will be using Mercurial for version control and I was wondering what a more appropriate way to store the binary assets for the game would be. Basically, I have 2 options: Mercurial 2.1 has…
user730075
4
votes
1 answer

Mercurial repository with bitbucket subrespository - how to prevent push

I am in the process of setting up some third-party subrepositories under a Mercurial repository. One subrepo is another Mercurial repo hosted on Bitbucket. Since it is a public repo, and I am not a contributor to it, I don't wish to push back to it.…
unsynchronized
  • 4,828
  • 2
  • 31
  • 43
4
votes
1 answer

Adapting svn:externals usage for move to Mercurial

We've got in a corporate environment an svn repository structure which looks like this: root libs shared_lib1 shared_lib2 private_lib public_code private_code where public_code is an external repository which is open source and…
fschmitt
  • 3,478
  • 2
  • 22
  • 24
4
votes
1 answer

Workflow to keep Mercurial subrepositories up to date when changes are made in clones?

I have read every question on Mercurial subrepositories that I could and still not sure how it works. We are using hgweb.cgi on IIS so we have http:// paths to all of our repos. Here is the basic layout: /Libraries -…
jpshook
  • 4,834
  • 6
  • 36
  • 45
4
votes
1 answer

Mercurial: can I ignore a file for push/pull but still commit? (.hgsub)

I have a repo with two sub-repos set up like this: project/ |-- folder1 |-- folder2 |-- www [subrepo] |-- dev [subrepo] On Machine A, I have checked out project, www, and dev, and modified .hgsub as such. I have to commit…
mathematical.coffee
  • 55,977
  • 11
  • 154
  • 194
4
votes
1 answer

Working with subrepos in Mercurial

I've got a big system with many components that I want to spread out over several different mercurial repositories (so people working on parts of the system don't have to checkout the entire system). It needs to work on both UNIX and Windows. Within…
Paul W Homer
  • 2,728
  • 1
  • 19
  • 25
4
votes
2 answers

Can a Mercurial subrepostiory reside in a subfolder?

I used the have the following line in my .hgsub for years: setup/help = https://my.repo.com/manuals It would place the repository named "manuals" into a folder help inside another folder setup. So my parent repository structure looks like…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
4
votes
1 answer

Changing a subrepository url in mercurial, from https to ssh. Any problems doing that?

I have in a .hgsub, an entry to a subrepository, that is invoked using https. myrepo = https://user@bitbucket.org/user/project Now, I want to use ssh since both repositories are mine and I've created a ssh key. So, it would be: myrepo =…
4
votes
2 answers

Mercurial workflow with subrepositories and offline clones?

I'm offline a lot. So normally, I use one local clone as a "hub" for features, bugs, etc. hg clone local-hub bug-123 Works offline. Cool. Can I use a similar workflow if that project contains remote subrepositories? Because, if .hgsub…
harpo
  • 41,820
  • 13
  • 96
  • 131
4
votes
0 answers

Mercurial subrepositories with MQ

Sometimes when I am working on a code change, I need to make a corresponding change to the shared library code in my repository, which is itself a subrepository. When I want to commit the changes, I do so in the parent repository and Mercurial takes…
Tyler Butler
  • 136
  • 5
4
votes
2 answers

Is it possible to change Mercurial subrepo paths from absolute to relative

Originally my subrepo's were defined with an absolute URL in .hgsub, which is now causing some trouble. It makes "friendly dictator" workflow impossible since I want to use an intermediate server where users clone their working copies from. Then I…
puudeli
  • 719
  • 1
  • 6
  • 12