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
2
votes
1 answer

Need to grant different permissions to different developers: could hg subrepositories be useful?

In a big project versioned with TortoiseHG and Bitbucket used to store the shared repository, for code IPR safety reason, I need to restrict the access of developers both on reading and modifying to specific subfolders. In other words, I need that…
fede72bari
  • 343
  • 5
  • 17
2
votes
2 answers

Mercurial: how do I create a new repository containing a subrange of revisions from an existing repo?

I have a repo with subrepos, with a long history. At some point the main subrepo became fully self-contained (doesn't depend on other sister subrepos). I don't care anymore about the history of the whole thing before the main subrepo became…
2
votes
1 answer

Use Mercurial path as just part of URL

I am messing around with the paths section of my .hgrc, and have default and default:pushurl set. I am adding another path simply called def for now, that is essentially http://example.com/hg. Each repository, however, is a subdirectory of this…
17slim
  • 1,233
  • 1
  • 16
  • 21
2
votes
1 answer

TortoiseHG, fork with subrepos - force commit&push .hgsubstate only

There is public repo on mercurial (not mine). It contains two subrepos. I've made a fork for both main repo nad two subrepos. I want to create pull requests from time to time, but I can't make subrepos work properly. When I clone my forked repo, it…
Danil Eroshenko
  • 470
  • 2
  • 10
2
votes
0 answers

Mercurial subrepo with secret phases: avoiding inconsistent host repo state

Assuming the following situation: I have a mercurial "host repo" with a subrepo. The subrepo contains a changeset in the secret phase. The "host repo" has a changeset in the draft phase that depends on the secret-phase changeset in the subrepo. If…
ARF
  • 7,420
  • 8
  • 45
  • 72
2
votes
2 answers

How to add subprojects to a main project in mercurial?

I'm new to mercurial and tortoise and I have some problems trying to understand how to work with sub-projects. I have three folders called UART, SPI and ADC. These folders contain code to use the uart, spi and adc for a microcontroller family. These…
m4l490n
  • 1,592
  • 2
  • 25
  • 46
2
votes
1 answer

What is the issue with absolute paths in .hgsub?

The mercurial documentation recommends to use trivial relative paths in .hgsub and use [subpaths] to map to the absolute paths. I don't fully understand the reasoning behind this. The argument on the documentation page is that absolute paths are…
Flogo
  • 1,673
  • 4
  • 20
  • 33
2
votes
1 answer

Mercurial - Pushing Sub-Repo Heads

How can I only push the needed HEADS of a subrepo from within the parent repo. I've started using a bookmark style process for local feature branches in mercurial. It works great so far, just commit, bookmark and switch in and out of that head to…
Paystey
  • 3,287
  • 2
  • 18
  • 32
2
votes
2 answers

Is it possible to update back through the point of adding subrepos?

I've had a folder in my repository. Then I have made this folder a subrepository (with the very same files), commited and pushed this change. Now I can't update back through that commit. Here's the message I get: % hg update --repository
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
2
votes
2 answers

disable/deprecate (but not delete) mercurial repository

My colleagues and I use several repositories that live on a centralized (ubuntu, if it matters) server. For several of our projects, we include the same 4 repositories as subrepositories in lots of different projects. This can be a little irritating…
dino
  • 3,093
  • 4
  • 31
  • 50
2
votes
2 answers

NuGet in a sub-repo (externals) environment

I have a few repositories in Mercurial with the following structure: Core Integration Admin MyApp From the MyApp repo, I want to include Core and Integration. I add those as a sub-repo to MyApp, and place it inside an Externals folder. Folder…
MartinHN
  • 19,542
  • 19
  • 89
  • 131
2
votes
1 answer

Multi-user access for Mercurial sub-repositories

What is the right way to organize ssh access to sub-repositories in mercurial? Consider the following situation: master |--.hgsub |--slave1 |--slave2 And .hgsub: slave1 = ssh://user@host://var/local/repos/slave1 slave1 =…
Zaur Nasibov
  • 22,280
  • 12
  • 56
  • 83
2
votes
1 answer

Mercurial new suprepository in nested subrepository

I'm not sure if this is possible, and if it's not any alternative solutions would be welcomed! I have a number of solutions using Orchard - which mandates that any modules be in a certain directory inside it's folder structure. I have some modules,…
Carl
  • 1,782
  • 17
  • 24
2
votes
1 answer

Mercurial repository log including subrepositories

In our build scripts I use the templated hg log command to get a changelist for a particular build. This works great, but unfortunately it does not include changes in the subrepos (we have more than 10 of them). I would like to include them too, but…
Vladimir Sinenko
  • 4,629
  • 1
  • 27
  • 39
2
votes
1 answer

Internal Vrs External Path to Sub-repository

I have a repository for an application A which is controlled by mercurial and a library B which is also controlled by mercurial. In the application A's repository it has the sub-repository mapped to library B's repository using the path central…
JadziaMD
  • 2,690
  • 5
  • 31
  • 42
1 2 3
8 9