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

Mercurial subrepo username

I had to do some work in mercurial repository on another computer. This repository has a subrepo. The repository remote path is ssh://remote_username@server/path, so hg asks me for password for user remote_username. However, the subrepository has no…
Tomeamis
  • 477
  • 6
  • 14
1
vote
1 answer

Show if the revision of subrepos changed, or if they are dirty

I have a mercurial repository (main repo) with several sub repositories. I need a mercurial command to show if the revision of a sub repo changed (including information on old and new revision) in the working copy or if the sub repo state is…
wewa
  • 1,628
  • 1
  • 16
  • 35
1
vote
1 answer

Referencing specific folder as subrepository

I want to import specific folder from external repository. I can surely import whole repository as subrepository but i don't want to bring whole project so i only need a specific folder. Is this possible to do via Mercurial ?
Freshblood
  • 6,285
  • 10
  • 59
  • 96
1
vote
1 answer

Reclone mercurial subrepo

This seems like it should be really easy, but I can't find anything that directly addresses it in my searching. I have a mercurial repo with subrepos, I have deleted one of the subrepos (the whole folder). How do I reclone that subrepo now? I could…
radman
  • 17,675
  • 11
  • 42
  • 58
1
vote
1 answer

Merge a mercurial repository into a subdirectory of another one

I need to merge the all new changesets of a mercurial repository (lets call it A) into a subdirectory of another mercurial repository (lets call it B) on a regular basis. This means, just copying all files is not an option, as the files in B may…
loonytune
  • 1,775
  • 11
  • 22
1
vote
1 answer

TeamCity error after addind SVN subrepo to Mercurial

I added SVN project as a subrepository to my Mercurial project (following this instructions) and now TeamCity cannot build Mercurial project. I get the following error: [Updating sources] Failed to build patch for build #???, VCS root: "mercurial:…
Lia
  • 744
  • 1
  • 9
  • 30
1
vote
1 answer

How to change shared sub repository url

we have a replica of repository that is updated every 4 hours pointing to another url. Problem is .hgsub has path that is still pointing to original repository URL. How can we change the sub repository path in replica repository. As we are getting…
sam
  • 4,594
  • 12
  • 61
  • 111
1
vote
1 answer

How can I recover from a corrupted .hgsubstate file?

When trying a hg commit or hg status I'm getting the error abort: invalid subrepository revision specifier in .hgsubstate line 3 This is probably why: f322ee070c467d1e517564d679f150693739d186 buildtools 2e68a7e2306704c8dc98802c73897c6c43bf96bc…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
1
vote
1 answer

Multiple paths for subrepositories

I have main repository and 12 subrepositories in it. .hgsub contains mappings of local paths and repository hosting URLs. Besides default pull/push URLs for subrepositories, I need to be able to push each subrepository to another server as a…
rpeshkov
  • 4,877
  • 3
  • 27
  • 43
1
vote
1 answer

Can a Mecurial repository and its subrepos be cloned using --noupdate?

I have a repository with a number of sub repos, and I wish to clone all of them without having working files. When ever I try to clone using --noupdate no of the sub repositories are available in the closed repository. Is this due to the lack of a…
Jazzy J
  • 302
  • 1
  • 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
0 answers

mercurial child projects not showing up as java projects after cloning the parent

I have a mercurial project as shown below: Parent : Project 1 which is a folder with java files etc. Project 2, Project 3 and Project 4 are child projects meaning they reside under the Project 1 folder again with their own java files and other…
VRA
  • 11
  • 3
1
vote
1 answer

Best practice for using one mercurial project in another

What are the best practices for using one mercurial project in another? I've got a django app that I'm working on, but I'm also using mercurial to version control a website that uses that app. I've looked at mercurial subrepositories, but apparently…
samfrances
  • 3,405
  • 3
  • 25
  • 40
1
vote
0 answers

Mercurial workflow for subrepos to avoid "Can't merge due to uncommitted changes"

When working with a Mercurial repository ("outer") that has a subrepository ("inner"), often you can end up with the problem whereby you're trying to do a merge on the outer but it fails due to "uncommitted changes" when no changes are apparent (hg…
occulus
  • 16,959
  • 6
  • 53
  • 76
1 2 3
8 9