fast-import/fast-export git/bzr:标记文件对历史完整性的重要性是什么?

发布于 2024-11-23 19:47:09 字数 500 浏览 6 评论 0原文

我目前正在使用 git-bzr-ng 从 bzr 存储库导入多个分支,并且我发现,如果您为每个导入的分支使用不同的目标分支,则该工具不会使用相同的导入和导出标记文件。

阅读git fast-import 文档 并查看 bzr fast-import 文档示例表明相同标记的文件应该从同一存储库导入多个相关但未合并的分支时使用。

问题是,这到底有多重要?我还没有找到一个很好的解释来解释这些标记文件的目的是要防止什么,所以不清楚是否在没有正确使用它们的情况下导入了多个分支,是否存在正确识别祖先的问题,或者是否只是为了性能加快后续分支导入/导出的原因。

I'm currently using git-bzr-ng to import a number of branches from a bzr repository and I've discovered that if you use different target branches for each imported branch the tool does not use the same import and export marks files.

Some reading of the git fast-import Documentation and reviewing of the bzr fast-import documentation examples suggests that the same mark's files should be used when importing multiple related but unmerged branches from the same repository.

Question is, how important is this really? I haven't managed to find a good explanation of what these marks files are intended to protect from, so it's unclear whether if multiple branches have been imported without using them correctly there is a problem with correctly identifying ancestors, or if it's just for performance reasons to speed up subsequent branch imports/exports.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱格式化 2024-11-30 19:47:09

John Meinel 在 Bazaar 邮件列表 上对同一问题给出了以下答案:

bzr fast-import 为每次提交生成新的修订信息。
如果您指定一个标记文件,它将重新使用来自其他标记的导入
分支。如果不这样做,分支将不会共享共同修订。

John Meinel gave the following answer to the same question on the Bazaar mailing list:

bzr fast-import generates new revision information for every commit.
If you specify a marks file, it will re-use the imports from the other
branch. If you don't, the branches won't share common revisions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文