带 CRLF 的 CVS 到 Mercurial 转换

发布于 2024-09-19 20:58:17 字数 285 浏览 2 评论 0原文

我已将 CVS 存储库转换为 Mercurial,但回车符从 CRLF(Windows 风格)转换为 LF(Unix 风格)。但是,我希望存储库中有 CRLF!我意识到您可以使用 Mercurial 扩展 win32text解决这个问题和停产。但我真的更希望首先使用 CRLF 转换存储库。

我想听听是否有人在这方面取得了成功!

I have converted a CVS repository to Mercurial, but the carriage returns are converted from CRLF (Windows style) to LF (Unix style). However, I want CRLFs in the repository! I realise that you can combat this problem with Mercurial extensions win32text and eol. But I would really prefer to have the repository converted with CRLFs in the first place.

I would like to hear if anyone has succeeded in this endeavour!

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

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

发布评论

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

评论(1

调妓 2024-09-26 20:58:17

嗯,我以前没听人说过它是这样做的,但我以前也从未尝试过将 CRLF 放入仓库中。我猜想这不是 Mercurial Convert 进行行尾更改,而是它所链接的 cvs 导出工具。我

尝试使用 cvs2svn 或 cvs2git 作为中间步骤,如下所示:https://www. Mercurial-scm.org/wiki/RepositoryConversion#CVS

Hrm, I've not heard people say it does that before, but I've never tried to put CRLF in a repo before either. I'd guess it's not the mercurial convert doing the line ending change so much as it's the cvs export tool that it chains off to. I

Try using cvs2svn or cvs2git as an intermediary step as recommended here: https://www.mercurial-scm.org/wiki/RepositoryConversion#CVS

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