Bazaar文件夹重组
我只是将 bzr 用于我的个人项目。我有一个项目文件夹,并且有几个子目录。我首先(错误地)在每个子目录中执行了 $ bzr init ,并提交了多次。
现在我想在项目目录中$bzr init,包括所有子目录。但由于每个子目录已经有 .bzr 的东西,当我在项目目录中添加 $ bzr add 时,它不会包含这些子目录。
如果我只删除子目录中的所有 .bzr 文件夹,则可以添加它们,但随后我将丢失所有历史记录。我想知道是否有什么办法可以合并这个?
也许我的问题不够具体。我想将一个文件夹(例如“writing”)拉入文件夹“project/writing”。以前,writing 是顶层文件夹,但我想让项目成为顶层文件夹,并将writing 作为子目录。
我尝试了 mkdir project、cd project、bzr init、mkdirwriting,然后 bzr pull -d ./writing ../writing,但它会将文件拉入项目目录,而不是 project/writing 目录。
我对集市很陌生,如果我的解释令人困惑,我很抱歉。
谢谢你, 俊
I'm just using bzr for my personal project. I have a project folder, and I have several subdirectories. I firstly (mistakenly) did $ bzr init in each subdirectory, and commit many times.
Now I want to $ bzr init in the project directory, including all the subdirectories. But since each subdirectory already has .bzr thing, when I did $ bzr add in the project directory it would not include those subdirectories.
If I just delete all .bzr folder in the subdirectories then it would be possible to add them, but then I would lose all the history. I was wondering if there is any way to merge this?
Maybe my question was not specific enough. I want to pull a folder (for example, 'writing') into the folder "project/writing." Previously writing was the top level folder but I want to make project the top level and have writing as subdirectories.
I tried mkdir project, cd project, bzr init, mkdir writing, and then bzr pull -d ./writing ../writing, but it would pull the files into the project directory, not project/writing directory.
I'm very new to bazaar and sorry if my explanation is confusing.
Thank you,
Joon
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅
bzr帮助加入
:结果是一个组合树,子树不再是独立的部分。
这被标记为子树合并到包含树中,并且所有历史记录都被保留。
see
bzr help join
:The result is a combined tree, with the subtree no longer an independent part.
This is marked as a merge of the subtree into the containing tree, and all history is preserved.