Questions tagged [subrepos]

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

More information:

101 questions
1
vote
0 answers

How can I reduce the size of a hg subrepo without breaking links to the parent repo?

I am trying to upload my repositories to Bitbucket. It's a parent repository and a handful of subrepos. One of the subrepos is so big (and my connection is throttled) that Bitbucket times out before it finishes the import. I am hopeful that if I…
Cathalson
  • 11
  • 3
1
vote
2 answers

Importing a Mercurial repository automatically (e.g. SVN Externals)

I have a project that I am developing built off CodeIgniter. The main part of the project is a private system I am creating, but I want to add it to source control, to gain all the associated goodies. Now I'm using Mercurial, so I did the whole hg…
Liam Dawson
  • 1,189
  • 13
  • 27
1
vote
0 answers

Hg: [subpaths] section in .hgsub not able to accept other then lowercase names?

Is it supposed to be possible to have case sensitive directory names containing mercurial subrepos? I'm creating thin shell repository UberRepo with 2 sub-repositories: Foo and BaR. If I name the directories foo, bar (lowercase) and put following…
Jan
  • 1,905
  • 17
  • 41
1
vote
1 answer

Pulling from a co-worker when using subrepositories

We have several shared libraries that exist as subrepos in a parent repo. If a person clones the parent repo, it looks something like: /ParentRepo ---- .hg ---- .hgsub ---- .hgsubstate ---- SharedSub1 ---- SharedSub2 ---- SharedSub3 ----…
Andrew
  • 3,332
  • 4
  • 31
  • 37
1
vote
1 answer

Trouble with hg update when trying to checkout subrepo

I have a hg repository with svn subrepo. I've successfully cloned it to some machine and pulled newest revisions. Then I'm trying to update working dir to revision: bwh1te@dev-machine:~/work/project_name$ hg pull http authorization required realm:…
Alex Belyaev
  • 1,417
  • 1
  • 11
  • 15
1
vote
1 answer

How to specify the default-push for mercurial subrepositories?

When you add mercurial subrepositiories using .hgsub you can specify them using HTTPS or SSH but here is the big problem: if you specify HTTPS you will not be able to push because it will require you to login. if you specify SSH, you will be able…
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
1 answer

How to use mercurial or git subrepositories that are connected to the latest release tag?

I am looking for a solution that would allow me to use subrepositories that are getting not the HEAD and instead a specific RELEASE tag, or if possible the latest tag. Is this possible, how should I implement this? Did anyone implemented this?
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
1 answer

Tracking in-house libraries in subrepositories

We are developing an in-house framework that several projects are going to use. The idea is to have the entire framework tracked as a mercurial subrepository of each project's repository. This resulted in the following subrepo tree (see…
1
vote
2 answers

How to maintain stable/default configuration with master repository and subrepos in remote hosting environment?

I have an application "myapp" that uses two modules common with other applications "common" and "common-www". These are arranged as a thin-shell within a master repository myapp-master myapp common common-www Each subrepo is setup as a…
Nick Pierpoint
  • 17,641
  • 9
  • 46
  • 74
1
vote
0 answers

For Bamboo continuous integration: Should we set up our SQL code repository as a Mercurial Subrepository to our code?

We are using Bamboo as our continuous integration Build Server deploying to multiple environments. I am in the process of integrating SQL code deployment using Red Gate SQL Compare and Data Compare through Bamboo NANT scripts. Our TEST environment…
Pouya Barrach-Yousefi
  • 1,207
  • 1
  • 13
  • 27
1
vote
1 answer

Creating Mercurial subrepositories, while maintaining the history

I am about to make some major changes to my Mercurial repositories. As I am going to be using a Feature of Last Resort, I am looking for some advice and reassurance that I am not doing something stupid. Where I Am: I have a Mercurial repository with…
Oddthinking
  • 24,359
  • 19
  • 83
  • 121
1
vote
3 answers

recommended method to add a *single file* as a subrepo to a mercurial repository

I have a mercurial repository myProject: myProject |- file1.js |- file2.css |- useful.js Now useful.js is a file with a few useful classes in it. I use it in multiple projects and as such it has its own repository: useful |- useful.js |-…
mathematical.coffee
  • 55,977
  • 11
  • 154
  • 194
1
vote
1 answer

How to add specific subfolder of subrepo

I'm comming from SVN background and I'm having a problem of adding to my main repo a subfolder of subrepo. That means that I don't want to add the whole subrepo to my main project - only a part of it. In my situation I want to include only source…
Rytis Alekna
  • 1,387
  • 7
  • 17
0
votes
1 answer

Keeping subrepos in sync on central server

I keep thinking I understand subrepos and how I can make them work for my teams workflow, but clearly I don't, because every time I try to implement some basic workflow, something doesn't end up working right. I've read pretty much everything there…
chrismay
  • 1,384
  • 2
  • 15
  • 25
0
votes
1 answer

How to set up a mercurial repository which contains only some packages from different subrepositories projects?

I have a distant repository called http://myrepo I also have 3 projects with 3 distinct packages (1 in each) stored in D:/Projects/Project[ABC]/src/pack[ABC]. I would like to create a local repo in D:/Mercurial which will reference the packages…
Bernard Rosset
  • 4,523
  • 6
  • 27
  • 29