推荐的方法来协调多个从属商品库的版本? [英] Recommended way to coordinate versions of multiple dependent mercurial repositories?

查看:61
本文介绍了推荐的方法来协调多个从属商品库的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在经过数小时的阅读和反复试验之后,它终于打动了我. Mercurial并不是真的想要SubRepos ...至少不是与TortoiseHg和Bitbucket一样.如果我弄错了,并且您不希望对类似当然有效,您没有阅读官方文档"的粗鲁回应投下反对票,那么请提供一个简单的示例,说明如何通过TortoiseHg最新操作这将成功推送到Bitbucket.也许是一个利用Merurial,Bitbucket和Subrepos的开源项目?

Well, after many hours of reading and trial and error, it has finally hit me. Mercurial doesn't really want to do SubRepos...at least not with TortoiseHg and Bitbucket. If I am mistaken, and you don't want a down vote for a rude response similar to "of course it works, didn't you read the official docs", then please provide a simple example of how to do so via TortoiseHg latest that will successfully push to Bitbucket. Maybe a open source project that utilizes mercurial and bitbucket and subrepos?

所有这些,如果我们将类库保存在单独的存储库中,并且建议的方法是不使用subrepos(作为最后的手段"),那么为所有依赖项捕获版本的建议方法是什么mercurial仓库,通过该仓库,我可以快速将所有依赖项仓库跳转到正确的版本,以进行错误修复等.

All that said, if we keep our class libraries in seperate repos, and the recommended approach is to not use subrepos ("as a last resort"), what is the recommended way to capture a version for all dependent mercurial repos whereby i can quickly jump all dependency repos to the correct version for bug fixes and the like.

我怀疑我会使用标签来标记版本.因此,建议的方法是手动进入所有库并用通用版本标签标记每个存储库,然后手动为所有程序集还原到该标签吗?

I suspect I would use Tags to tag a version. So, is the recommended way to manually go to all libraries and tag each repo with the common version tag and then revert back to that tag for all assemblies, manually?

请避免所有有关工作流程管理复杂性的技术术语.关于SO,对此有很多很好的阅读.我希望有几个DLL类库的简单的单一主exe项目.

Please refrain from all the of the technical jargon about the complexities of workflow management. There is a ton of great reading regarding this on SO. I am hoping for a simple single main exe project with a few DLL class libraries.

推荐答案

感谢@SteveKaye,我有一个可行的解决方案.当使用TortoiseHg添加子存储库"时,TortoiseHg会像这样格式化.hgsub文件

Thanks to @SteveKaye, I have a working solution. When using TortoiseHg to "Add a subrepository", TortoiseHg was formatting the .hgsub file like this

subrepo = subrepo

而不是像他的例子

subrepo = ../subrepo

如果有人想评论为什么需要相对的"../",那就太好了.我的目录结构如下:

If someone would like to comment why the relative "../" is required, that would be great. My directory structure is the following:

MainRepo/
         .hgsub
         SubRepo/
         SubRepo2/

如果"../SubRepo"相对于.hgsub,../不会进入一个目录然后寻找名为SubRepo的文件夹吗?哦,好吧,我可以遵循:)或在../

if "../SubRepo" is relative to .hgsub, wouldn't the ../ go up one directory and then look for the folder called SubRepo? Oh well, I can conform :) or be corrected if ../

有了史蒂夫的榜样,我就明白了.

Having Steve's example helped me to see what was off.

这篇关于推荐的方法来协调多个从属商品库的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆