mercurial-subrepos

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

两盒软妹~` 提交于 2020-05-25 07:57:07
问题 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 correct and complete when checking out earlier parts of the repository or other branches. I don't need the new repository to have submodules or subtrees, although I would accept a solution using that as well. Some methods I've seen merge all the

How to deal with Git submodules on a repo that is converted to Mercurial

喜夏-厌秋 提交于 2020-01-03 07:32:10
问题 Here goes: $ cat .gitmodules [submodule "utils/external/firepython"] path = utils/external/firepython url = git://github.com/darwin/firepython.git [submodule "utils/external/textile"] path = utils/external/textile url = git://github.com/jsamsa/python-textile.git While this was still a Git repo, I needed to run git submodule init , after which some magic happens. Since I've now converted the repo to Mercurial (using hgext.git extension), I don't know what to do. Is there an equivalent process

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

十年热恋 提交于 2019-12-21 23:32:21
问题 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 combined change log of all subrepos in the top level repo. So I created an empty HG repo, some empty subrepos, linked their names and locations by .hgsub , checked that I can clone this repo together wth its subrepos to another comp ... Then I tried to

setting up mercurial/kiln subrepos on osx

好久不见. 提交于 2019-12-20 05:53:15
问题 I have been trying to follow the instructions in the answer to this question, using kiln. i'd like to be able to arrange things as follows: /somepath/thirdparty maps to a kiln repository "thirdparty" and contains assorted code /somepath/common maps to a kiln repository "common" and contains shared code i have written and /somepath/project1 maps to kiln repository "project1" /somepath/project1/thirdparty maps to branch of thirdparty above /somepath/project1/common maps to branch of common

Mercurial - How to disable push

余生长醉 提交于 2019-12-10 23:45:46
问题 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. 回答1: You can do this like this in .hg/hgrc: [hooks] prechangegroup = false 回答2: This depends on how you're publishing your repositories but here's a few things you can try, depending on this: If you're publishing your repositories on network shares or mounted volumes, simply

Mercurial internals : Git subrepository status after aggressive permission change

a 夏天 提交于 2019-12-10 23:42:17
问题 Disclaimer : I'm not asking for a solution, a workaround or any kind of advice on how to do things, I'm just curious about the internals of Mercurial. I have a mercurial repository with some subrepository in it (Git and Mercurial). My repository and all subrepo are in a clean state (ie: hg st -S returns nothing). I do some aggressive permission changes at the root : chown www-data:www-data -R * Now, hg st -S returns each and every file of the Git subrepos (the Mercurial ones are still

Using subrepositories with bitbucket and ToritoiseHg

感情迁移 提交于 2019-12-07 05:26:52
问题 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 on bitbucket The file .hgsub inside MainFolder looks like this: SubFolder1 = SubFolder1 SubFolder2 = SubFolder2 The file .hgsubstat inside MainFolder also have valid guids and subrepository names. The problem is whenever I try to push to bitbucket

Mercurial: Windows script to add subrepository automatically

橙三吉。 提交于 2019-12-07 03:56:09
问题 RyanWilcox had posted a script at here, that can use the following command to add subrepository automatically: $ cd $TOP_OF_HG_PROJECT $ addsubrepo.sh $URL_TO_HG_PROJECT relative_path/you/want_to/put_the_subrepo How to translate it into Windows batch or powershell script? 回答1: Here is a quick and dirty translation. Haven't tested as I got no Mercury around. The initial script seems to be easy enough to translate into Powershell. # Project and relative paths as script parameters param([string]

Can I nest subrepos in Mercurial?

╄→гoц情女王★ 提交于 2019-12-06 23:03:00
问题 I am having trouble setting up a project in Mercurial with subrepos. Goal: I want to set up the structure like so: -- Build_Repo (this repo will be used to track dependencies) -- Subrepo_A (this is the main source) -- Modules (Part of Subrepo_A) -- Subrepo_B So there are three repos: Build, A, and B. B is nested inside A, A is nested inside the root build repository. The build repo will be used to track dependencies, subrepo A will be used to track the main source files, and subrepo B (and

Using subrepositories with bitbucket and ToritoiseHg

為{幸葍}努か 提交于 2019-12-05 08:58:11
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 on bitbucket The file .hgsub inside MainFolder looks like this: SubFolder1 = SubFolder1 SubFolder2 = SubFolder2 The file .hgsubstat inside MainFolder also have valid guids and subrepository names. The problem is whenever I try to push to bitbucket for MainFolder, first it pushes the MainFolder, then SubFolder1, but when it gets to SubFolder2,