subrepos

Mercurial repo inside a repo

拈花ヽ惹草 提交于 2019-12-09 13:05:43
问题 Is it possible to create a mercurial repository inside an existing mercurial repository? The idea is to handle subdirectories of a repository as different repositories, how do you do that? I'm not talking about subrepos (at least, if I understood the purpose of subrepos...), but if this is how subrepos do exist for, I got it wrong and I'll try to get it right :) Thanks ~Aki EDIT: To be more clear, I'd like to know what happens, the practices and the implications of having a repository inside

Mercurial workflow with subrepositories and offline clones?

风格不统一 提交于 2019-12-07 09:55:20
问题 I'm offline a lot. So normally, I use one local clone as a "hub" for features, bugs, etc. hg clone local-hub bug-123 Works offline. Cool. Can I use a similar workflow if that project contains remote subrepositories? Because, if .hgsub says sub/shared = http://server/hg/shared hg clone says abort: error: getaddrinfo failed Note that once the clone is created (while connected), push and pull will use the path in the subrepo's hgrc (instead of the location in .hgsub ). So I can point this to a

Is it possible to peg a Mercurial subrepo to a specific revision (like svn:externals)?

一世执手 提交于 2019-12-07 07:39:57
问题 I'm migrating a set of projects from Subversion to Mercurial. The projects currently use svn:externals to pull code from one into the others. I've been following the recommendation to point externals to a specific revision number and manually update it as needed (so that when I update to a past revision of the main project, I get the past version of the externals too). The way to do externals in Mercurial seems to be with subrepos, but I don't see a way to peg them to a specific revision - it

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]

Mercurial subrepositories - managing more complex dependency hierarchies

孤街浪徒 提交于 2019-12-06 03:55:44
问题 I have a master project that's using a fairly standard source tree approach + mercurial subrepositories. Master \lib - compiled binaries - things like log4net, AutoFac, etc \source - VS solution, one folder per project, etc \tools - stuff used during the build process \source\contrib - contains any subrepos like so: \source\contrib\Sub1 \source\contrib\Sub2 Master\.hgsub contains something like source\contrib\Sub1 = https://myserver.com/Sub1 Now, it was recently determined that Sub2 needs

How to convert an existing Mercurial repository to use subrepositories and keep the history intact?

佐手、 提交于 2019-12-05 20:11:13
问题 I've been reading about subrepositories and how to extract an existing folder from a Mercurial repository to a subrepository using the convert extension and a filemap. I can successfully do this. If I have the following folder structure: C:\Project ---Project\root.txt ---Project\SubFolder ---Project\SubFolder\fileinsubfolder.txt I can make a subrepository of SubFolder. In much the same way I can extract everything else a seperate repositorie (in this example the second repository would just

Is it possible to peg a Mercurial subrepo to a specific revision (like svn:externals)?

为君一笑 提交于 2019-12-05 18:03:47
I'm migrating a set of projects from Subversion to Mercurial. The projects currently use svn:externals to pull code from one into the others. I've been following the recommendation to point externals to a specific revision number and manually update it as needed (so that when I update to a past revision of the main project, I get the past version of the externals too). The way to do externals in Mercurial seems to be with subrepos, but I don't see a way to peg them to a specific revision - it looks like Hg will always update the subrepos to the latest revision whenever I update the main repo.

Mercurial workflow with subrepositories and offline clones?

只谈情不闲聊 提交于 2019-12-05 12:52:10
I'm offline a lot. So normally, I use one local clone as a "hub" for features, bugs, etc. hg clone local-hub bug-123 Works offline. Cool. Can I use a similar workflow if that project contains remote subrepositories? Because, if .hgsub says sub/shared = http://server/hg/shared hg clone says abort: error: getaddrinfo failed Note that once the clone is created (while connected), push and pull will use the path in the subrepo's hgrc (instead of the location in .hgsub ). So I can point this to a local clone and everything is cool. But clone looks at .hgsub (as it's supposed to). So if the "blessed"

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,