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
1
vote
1 answer

How do you replace a Mercurial subrepo with a folder?

I am working with a Mercurial repository that has the following structure: -- Root -- .hgsub -- SubDir -- SubSubDir -- SubRepo The .hgsub file declares SubRepo as follows: SubDir/SubRepo =…
Matthew Lowe
  • 1,350
  • 1
  • 17
  • 29
1
vote
1 answer

Sharing a core codebase between multiple projects

We have several product lines built around a common core and currently maintain them in SVN using externals. Moving to mercurial, it is natural to move to use hg sub-repositories. The thing is the core is quite large (probably >GB, judging by the…
Uri Cohen
  • 3,488
  • 1
  • 29
  • 46
1
vote
0 answers

Can't clone Mercurial subrepo from main repo, fails with 'unknown revision'?

I have a Windows file structure like so: Stable ProjectA SharedLibrary Stable contains the main repo. ProjectA and SharedLibrary are subrepos of Stable. The .hgsub file contains: ProjectA = ProjectA SharedLibrary =…
Casey Wilkins
  • 2,555
  • 2
  • 23
  • 31
1
vote
2 answers

Keep histories in sync between local and remote mercurial repositories

I am working on a project that is set up with each group having a server-side clone of our main mercurial repository. The workflow we have been using involves developing on laptops, committing and pushing to the server-side clone repositories and…
weitzner
  • 440
  • 3
  • 12
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
1 answer

Mercurial: moving to a new repository structure - subrepos update

So, here is the problem: Let's say we have a very old installation of Kallithea with whole bunch of repositories, and, after 5 years of intensive development, it became bloated with legacy and experimental stuff, structural inconsistencies, etc. We…
Leontyev Georgiy
  • 1,295
  • 11
  • 24
1
vote
1 answer

Mercurial -- grab all files inside a repository, including subrepos, but not the repository itself

Is this possible? To give a simplified explanation of what I want to do: I have a repository "A" with a subrepository "B". I have two copies of the pair. In one copy (let's call it the small copy), "A" has changesets A1-A5, and "B" has changesets…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
1
vote
1 answer

Migrate SVN to HG, splitting it into subrepos in the way (but keeping combined log)

I have an SVN repository which contains a number of loosely-related subfolders in its trunk. I would like to convert it into HG repository, turning each of these subfolders into a separate HG subrepo. At the same time, I would like to access…
muwlgr
  • 23
  • 4
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
0 answers

How to refer to external SubRepo in the .hgsub file?

I want to add a SubRepo which is outside the folder of the MainRepo as this SubRepo will be the SubRepo of many Big Main Repos at the same time for a certain design purpose. Example: Main is a big Repo Main2 is a big Repo my_lib is a subRepo for…
Mohamed
  • 11
  • 1
  • 4
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…
1
vote
1 answer

Push Mercurial subrepo to the same path as its parent

Is there any way to configure Mercurial to push a subrepository to the same path specified when pushing its parent? Say we have a parent repo with a subrepo, and the subrepo also has its own subrepo: A - B - - C Now, in each of A, B, and C we have…
Jordan
  • 4,133
  • 1
  • 27
  • 43
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 2 3
8 9