我可以拆分Mercurial存储库吗? [英] Can I split a Mercurial repository?

查看:61
本文介绍了我可以拆分Mercurial存储库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个比较大的Mercurial存储库,我决定最好使用几个较小的存储库.有没有一种方法可以拆分存储库,并让每个文件都保留其修订历史记录?

I have a largish Mercurial repository that I've decided would be better as several smaller repositories. Is there a way that I can split the repository and have each piece retain its revision history?

推荐答案

最好的方法是使用.您将使用Mercurial以及源类型和目标类型,然后使用--filemap并输入以下内容:

The best way to do this is using the 'convert' extension. You'll use mercurial and both source and destination type and then use a --filemap with entries like:

exclude path/you/do/not/want
rename path/you/do/want .

仅当您要保留要保留的部分并将它们移到目录层次结构中的较高"位置时,才需要重命名.

The rename is only necessary if you want to take the parts you're keeping and move them "higher" in the directory hierarchy.

这篇关于我可以拆分Mercurial存储库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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