Questions tagged [subrepos]

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

More information:

101 questions
3
votes
1 answer

Mercurial subrepo - changed .hgsub file but it still tries to pull from old server

I have a mercurial repo with a subrepo: repo subrepo .hgsub The .hgsub originally had subrepo = https:///user/repo and domain was set up with my dns to point to bitbucket (I was playing around with their custom domains feature). I've…
carpat
  • 861
  • 10
  • 25
2
votes
2 answers

How to preserve Mercurial subrepo remappings across clone/pull?

I'm trying to set up subrepo remapping in Mercurial (2.1.1) to account for subrepo paths that may change in the future. I've been able to get the [subpaths] key to be read and processed properly when it is specified in the .hgrc file. However, when…
arathorn
  • 2,098
  • 3
  • 20
  • 29
2
votes
1 answer

Using subrepositories in mercurial to "share code"

I have a repository in which I have three subfolders. A, B and a core folder. I need the files of the core folder in A and in B. So every file of the core folder should be inside another folder in A and B and every update to the files should be…
hering
  • 1,956
  • 4
  • 28
  • 43
2
votes
1 answer

Mercurial, updating subrepo location

One of my subrepo url got changed and I had to update all my projects to use the new location. I happen to have the working clones of all the projects that use that subrepo. But what if I didn't have a working copy of one of them, how could I clone…
Orhun
  • 324
  • 2
  • 6
2
votes
2 answers

Tagging a subrepository only

I have a Mercurial main-repository with one sub-repository, like this: Main .hg .hgsub .hgsubstate Sub .hg And I wish to tag Sub, only, while keeping…
2
votes
1 answer

Regarding Mercurial Security + recursive checkins of subrepositories

this is going to be a long post...sorry upfront. I'm trying to wrap my head around how to hold together "Repositories for each project branch", and what the impact of that would be on a team. Right now, it appears that Can recursively checkin code…
Ciel
  • 21
  • 2
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
1 answer

Mercurial nested subrepos (subrepos in subrepos) not recursively commiting?

I've got a Mercurial repo set up like this, with a subrepo inside another subrepo: Root .hg .hgsub .hgsubstate Nested .hg .hgsub .hgsubstate foo.txt FurtherNested .hg bar.txt If I change foo.txt and…
david.jade
  • 55
  • 1
  • 6
2
votes
2 answers

Why are mercurial subrepos behaving as unversioned files in eclipse AND torotoiseHG

I am trying to use the subrepo feature of mercurial, using the mercurial eclipse plugin\tortoiseHG. These are the steps I took: Created an empty dir /root cloned all repos that I want to be subrepos inside this folder (/root/sub1,…
olamundo
  • 23,991
  • 34
  • 108
  • 149
1
vote
1 answer

How can I make MercurialEclipse clone repo with a git subrepo under Windows?

I converted my svn subdirectory with svn:externals leading to github via its svn gateway into bitbucket and uploaded on bitbucket (I wanted to shift to DVCS, bitbucket allows personal repos so I can free my server from serving svn and having it on…
user1046334
1
vote
2 answers

Mercurial suprepositories

I have got a question regarding suprepositories. Our project is set up like this: + projectA + some files + dependencyA + some files dependencyA is a subrepository. It was created this way: cd projectA mkdir dependencyA cd…
realshadow
  • 2,599
  • 1
  • 20
  • 38
1
vote
2 answers

Mercurial Subrepos are not created during cloning process

I have created a repository that contains a subfolder called 'subrepo'. I then created an .hgsub file with the following contents: subrepo = https://me@bitbucket.org/me/subrepo-test When I go to BitBucket and view the source, I see a 'subrepo'…
Micah Wood
  • 11
  • 3
1
vote
1 answer

subrepos - Does Mercurial's subrepositories can be used to push multiple project in a repository?

I have 3 projects: D:\Projects\ProjectA\src\packA D:\Projects\ProjectB\src\packB D:\Projects\ProjectC\src\packC I want to store the 3 packages of these 3 projects in a same distant repository. I tried to clone the 3 packages in the clone of my…
Bernard Rosset
  • 4,523
  • 6
  • 27
  • 29
1
vote
0 answers

After distro upgrade, mercurial won't commit git subrepo

I've recently upgraded from Devuan ASCII to Devuan Beowulf (i.e. Debian Stretch to Debian Buster). I think I've installed all relevant mercurial-related packages; but when I try to commit a mercurial repo with a git subrepo, it tells me: abort: git…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
vote
1 answer

How exactly do "subpaths" in mercurial (hg) work?

I'm reading about subpaths in mercurial, and still can't understand the following: if subpaths file isn't versioned, how am I supposed to have at least a "primary" source for this? Should I version a subpaths file inside my repo along with .hgignore…