带 CRLF 的 CVS 到 Mercurial 转换
我已将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,我以前没听人说过它是这样做的,但我以前也从未尝试过将 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