CVS到Mercurial转换:行尾问题 [英] CVS to Mercurial conversion: end of line problem

查看:107
本文介绍了CVS到Mercurial转换:行尾问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将CVS存储库转换为Mercurial.从外观上看,一切都很完美.除了每个行尾字符都为Unix风格,我希望它们为Windows风格.

I recently converted a CVS repository to Mercurial. From the looks of it, everything went perfect. Except that every end-of-line character is in Unix style and I want them in Windows style.

我知道hg convert命令可用于将Mercurial存储库转换"为Mercurial存储库.我可以使用它在存储库上执行任何操作,但不能修复行尾吗?

I know the hg convert command can be used to "convert" a Mercurial repository to a Mercurial repository. Can I use it to do nothing on the repos but fix the line endings?

推荐答案

将它们存储在存储库中的方式并不是很重要,因为您可以使用已检出的工作目录进行实际工作,可以在其末尾控制行使用以下任一扩展名更新时间:

How they're stored in the repo isn't terribly important since you do your actual work with the checked out working directory, whose line endings you can control at update time using either of these extensions:

  • Win32TextExtension
  • hg-eol extension

更多详细信息,请参见: https://www.mercurial-scm.org/wiki /EOLTranslationPlan

more detail is available here: https://www.mercurial-scm.org/wiki/EOLTranslationPlan

这篇关于CVS到Mercurial转换:行尾问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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