subrepos

What's the ROI of Sub-Repositories?

荒凉一梦 提交于 2020-01-06 19:55:00
问题 I know that sub-repositories save you an your team time, but what is the ROI on them? https://www.mercurial-scm.org/wiki/subrepos 回答1: If you have a dependency which is developed by you along with the main project then subrepos are a perfect fit IMO. I've been using subrepos in these circumstances for a while now and they save a lot of effort. I feel they're particularly beneficial for open-source projects, where getting all dependencies required to build your project can be a pain for

Hg sub-repository dependencies

一世执手 提交于 2019-12-29 04:35:10
问题 There have been a couple of questions about Hg sub-repo dependencies in the past (here and here) but the accepted answers don't seem to address the problem for me. A project of mine has 4 dependencies: A, B, C, D. D is dependent on A, B and C; and B and C are dependent on A: I want to use Hg sub-repositories to store them so I can track what version of each they rely on. This is because, while I am using A,B,C and D in this project, other projects will require just A and B . Therefore B and C

Importing a Mercurial repository automatically (e.g. SVN Externals)

我怕爱的太早我们不能终老 提交于 2019-12-24 08:07:32
问题 I have a project that I am developing built off CodeIgniter. The main part of the project is a private system I am creating, but I want to add it to source control, to gain all the associated goodies. Now I'm using Mercurial, so I did the whole hg init bit, so I've got the repository set up. Now, one of the things I've done is to make a library for CodeIgniter, which I use in this project. Now I want to make this library open, so I need a separate repo for that. For anyone unfamiliar with

Mercurial: can I ignore a file for push/pull but still commit? (.hgsub)

纵然是瞬间 提交于 2019-12-23 12:24:13
问题 I have a repo with two sub-repos set up like this: project/ |-- folder1 |-- folder2 |-- www [subrepo] |-- dev [subrepo] On Machine A, I have checked out project, www, and dev, and modified .hgsub as such. I have to commit this in order for the www and dev subrepositories to be recognised by hg (commit -S, etc). However Machine B only uses the www functionality of the project, so it looks like this: project/ |-- folder1 |-- folder2 |-- www [subrepo] Again, the .hgsub in Machine B only has an

How can I tell, within a CMakeLists.txt, whether it's used with add_subdirectory()? [duplicate]

有些话、适合烂在心里 提交于 2019-12-21 19:53:32
问题 This question already has answers here : How to detect if current scope has a parent in CMake? (2 answers) Closed last year . I have this code project can be built either independently or as a subproject of a larger repository (checking it our as a sub-repository). In the latter case, I have a top-level CMakeLists.txt for the main project which has add_subdirectory(${MY_SUBPROJ_SUBDIR}) now, I want the subproject to behave somewhat differently in case it's used via the add_directory() .

Is the subprepos feature in Mercurial 1.4.x ready for production use?

半城伤御伤魂 提交于 2019-12-18 05:57:31
问题 I'd like to evaluate Mercurial for my working projects. But most of my projects very heavily rely on the presence of svn:externals-like support. I've searched over StackOverflow and googled for corresponding support in Mercurial. All I found is subrepo feature added in Mercurial 1.3, but the page for this feature said: subrepos are an experimental feature for Mercurial 1.3. So don't do this on mission critical repositories! I don't want to use something unstable. Can anybody shed some light

Join multiple subrepos into one and preserve history in Mercurial

依然范特西╮ 提交于 2019-12-18 04:40:19
问题 Currently I have project consisting of multiple repositories, e.g.: +--- Project (main repo) +--- Core (subrepo) +--- Web (subrepo) \--- Tests (subrepo) Unfortunately the code between subrepos is quite coupled so it doesn't work nicely with branches. Is there any way to consolidate the subrepos into one main repository preserving the history? 回答1: I would start with using hg convert with a filemap that excludes the .hgsub and the subrepos. Next, use hg convert on the subrepos with rename

Adapting svn:externals usage for move to Mercurial

人走茶凉 提交于 2019-12-17 16:23:07
问题 We've got in a corporate environment an svn repository structure which looks like this: root libs shared_lib1 shared_lib2 private_lib public_code private_code where public_code is an external repository which is open source and where people from outside the company have read-write-access. shared_lib1 and shared_lib2 are also external repositories shared with a different group of programmers from an other company. I'm the maintainer and can do basically whatever is technically best, the

Mercurial Subrepos, how to control which changeset I want to use for a subrepo?

霸气de小男生 提交于 2019-12-13 14:40:39
问题 I am reading up on subrepos, and have been running some tests locally, seems to work OK so far, but I have one question. How do I specify/control which changeset I want to use for a particular subrepo? For instance, let's say I have the following two projects: class library application o fourth commit o second commit, added a feature | | o third commit o initial commit | | o second commit |/ o initial commit Now, I want the class library as a subrepo of my application, but due to the

How to make local clone without pulling subrepos again?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 08:54:16
问题 I often work with Mercurial by keeping a local store of my upstream clones, and then just cloning again locally for my actual working environment: $ cd /clones $ hg clone ssh://external-repo.example.com/some/repo/path/foo $ cd ~/Development $ hg clone /clones/foo This is particularly useful for me because I often want to make new clones on airplanes, etc., where I have no internet access. However, this doesn't work when the original clone contains subrepos - the presence of the .hgsubstate