mercurial - 解决Windows中的Mercurial案例折叠冲突

标签 mercurial

我在StackOverflow上看到了其他Mercurial的案例折叠式答案-他们说,如果您可以访问区分大小写的文件系统(如unix),请在此处进行检查并对其进行修复。问题是,我无权访问unix框,我是Windows开发人员,正在开发Windows应用程序。

在没有Unix机器的情况下如何解决此问题?

最佳答案

目前正在处理filesystem帮助主题,该主题将包含在下一版本的Mercurial中:

https://www.mercurial-scm.org/pipermail/mercurial-devel/2012-April/039522.html

Renaming colliding files

On case-insensitive filesystems, updating to revisions which have files with case collisions will abort, even with --check or --clean.

To repair such revisions, you should give new names to one or both of the colliding files on a case-sensitive filesystem, and commit them to create new collision safe revision.

.. note:: If you want to (or need to) browse or repair such revisions on case-insensitive filesystems, please see 'Updating manually' section.

If :hg:merge is aborted, but :hg:update --check to each revisions successes, collision occurs between revision to be merged.

In this case, files in one of them or both should be renamed to avoid collision before merging.

With recent Mercurial, you can change case of filename safely in steps below, even on case-insensitive filesystems::

$ hg rename a.txt tmp
$ hg rename tmp A.TXT

Updating manually

If you want to (or need to) update working directory by the revision causing case-folding collision on case-insensitive filesystems, to rename colliding files or browsing contents at such revision for example, please see the Wiki page below::

https://www.mercurial-scm.org/wiki/ManualCheckout

This is NOT recommended for non expert Mercurial users.



此处介绍了另一种类似的手动方法:

https://www.mercurial-scm.org/wiki/FixingCaseCollisions

但是,这也会深入到Mercurial内部,因此除非万不得已,否则应避免使用它。

关于mercurial - 解决Windows中的Mercurial案例折叠冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10531853/

相关文章:

mercurial - hg pull --rebase中使用的rebase命令是什么

python - 如何在 Mercurial 中重命名目录并继续跟踪所有文件更改

svn - 将 svn 补丁应用于 mercurial 存储库时出现的问题

mercurial - 如何将 bitbucket 存储库与托管的 FogBugz 按需版本集成?

Mercurial 推/拉详细输出

version-control - Mercurial 错误。不在根下

mercurial - 从特定日期克隆hg目录

mercurial - 从证书重写代理后面使用 Mercurial 和 Bitbucket 的配置?

mercurial - 检测文件是否版本化

Mercurial 关闭分支机构