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
6
votes
3 answers

Best way to migrate mercurial repo with subrepositories to git, preserving history?

I'm trying to migrate a mercurial repository to git, but the problem is that the mercurial repository has subrepositories (some with branches), and lots of merges and branches itself. I'd like the final git repository to keep all this history and be…
6
votes
1 answer

Using a specific (git) branch in a mercurial subrepository

I have a mercurial project in which I would like to use jQuery-File-Upload. I added the following to my .hgsub file in order to create a subrepo for this plugin: public/assets/common/js/filedrop =…
nstCactus
  • 5,141
  • 2
  • 30
  • 41
5
votes
1 answer

Mercurial (hg) update error, abort: No such file or directory

I am unable to update mercurial repos on my machine. I get the following error when I do an update hg up --traceback: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 87, in _runcatch …
5
votes
1 answer

How to show progress of subrepository update?

I have a Mercurial repository that contains a SVN subrepository. During hg update Mercurial freezes during processing of .hgsubstate file. I understand that this is because Mercurial executes svn command in background that pulls correct revision of…
Michal Sznajder
  • 9,338
  • 4
  • 44
  • 62
5
votes
2 answers

Using subrepositories with bitbucket

I have encountered this error when trying to push a subrepository to bitbucket: D:\Work\agile.crm.framework>hg push warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7 c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified…
the_drow
  • 18,571
  • 25
  • 126
  • 193
5
votes
2 answers

Mercurial "vendor branches" from external repositories?

I want to store a project in Mercurial that contains external code (which can be modified by me) coming from Git and SVN repositories. In SVN I would solve this with vendor branches and copy the code around, but I understood that in Mercurial it's…
Jan Fabry
  • 7,221
  • 2
  • 36
  • 41
5
votes
2 answers

Mercurial subrepo and relative path

I have a project, which I have a bitbucket repository for, and it is dependent on another project that I incorporate as a subrepo. Now, I don't have push access to the subrepository, nor do I want or need to--it's a pull-only relationship. I realize…
Santa
  • 11,381
  • 8
  • 51
  • 64
5
votes
5 answers

Mercurial - How to disable push

I am trying to find if there is an easy way to make a mercurial repository read-only. The user should be able to clone, but no pushes should be allowed. I need to do this for all my repositories which is more than 100.
Santhosh
  • 95
  • 1
  • 5
5
votes
1 answer

WordPress development using Mercurial. Whole tree or collection of subrepositories?

We intend to use Mercurial for version control of our WordPress website development. The development model in WordPress dictates that development usually occurs in a couple of sub directories off the main root for plugins and themes while the main…
5
votes
2 answers

Using subrepositories with bitbucket and ToritoiseHg

I have subrepository structure as following in TortoiseHg: /MainFolder/ /MainFolder/SubFolder1 /MainFolder/SubFolder2 MainFolder is a private repository on bitbucket SubFolder1 is a private repository on bitbucket SubFolder2 is a private repository…
4
votes
2 answers

Can a Mercurial subrepostiory reside in a subfolder?

I used the have the following line in my .hgsub for years: setup/help = https://my.repo.com/manuals It would place the repository named "manuals" into a folder help inside another folder setup. So my parent repository structure looks like…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
4
votes
1 answer

Changing a subrepository url in mercurial, from https to ssh. Any problems doing that?

I have in a .hgsub, an entry to a subrepository, that is invoked using https. myrepo = https://user@bitbucket.org/user/project Now, I want to use ssh since both repositories are mine and I've created a ssh key. So, it would be: myrepo =…
4
votes
2 answers

Mercurial: block commits if subrepos are dirty?

Is there any simple way to prevent commits to a repository if it has dirty subrepos? It's really annoying when a subrepo is accidentally committed along with a parent repository.
David Wolever
  • 148,955
  • 89
  • 346
  • 502
4
votes
1 answer

How to work without access to subrepository in Mercurial

There is a project repository A that uses framework subrepository B. Internal team has access to both. Is it possible to limit access to B for external team without breaking possibility to work with A? Currently it says "abort: response expected (in…
kFk
  • 409
  • 6
  • 13
4
votes
0 answers

Mercurial - race condition when pushing with subrepos

With a fairly basic subrepo structure like this: parent parent/subrepo1 parent/subrepo2 Race conditions tend to occur when multiple users push changes at the same time. Simple example: User 1 & 2 begin pushing. User 1 skips parent/subrepo1,…
Salami
  • 1,048
  • 1
  • 10
  • 17
1
2
3
8 9